This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

请问下面的外部变量具体定义在什么位置?



如下所示,常见的外部变量

extern Uint16 RamfuncsLoadStart;extern Uint16 RamfuncsLoadEnd;extern Uint16 RamfuncsRunStart;

extern Uint16 Cla1funcsLoadStart, Cla1funcsLoadEnd, Cla1funcsRunStart;

这些外部变量具体定义在什么位置??

  • 在Flash cla CMD文件中有定义

  • 谢谢回复。如你所述,应该就是这里定义了: 

      ramfuncs  : LOAD = FLASHD,           

                         RUN = RAMM0,         

                         LOAD_START(_RamfuncsLoadStart),                        

                         LOAD_END(_RamfuncsLoadEnd),                         

                         RUN_START(_RamfuncsRunStart),                        

                         PAGE = 0

    我还是有两个疑问:1. 这里很明显定义并没有指明RamfuncsLoadStart是int类型?

                                    2. CCS5编译器具体是如何与MemCopy(&RamfuncsLoadStart, &RamfuncsLoadEnd, &RamfuncsRunStart);配合,完成相关代码的内存拷贝。

    可能问题有点大,麻烦了!