如下所示,常见的外部变量
extern Uint16 RamfuncsLoadStart;extern Uint16 RamfuncsLoadEnd;extern Uint16 RamfuncsRunStart;
externUint16 Cla1funcsLoadStart, Cla1funcsLoadEnd, Cla1funcsRunStart;
这些外部变量具体定义在什么位置??
Joey Mao:
在Flash cla CMD文件中有定义
如下所示,常见的外部变量
extern Uint16 RamfuncsLoadStart;extern Uint16 RamfuncsLoadEnd;extern Uint16 RamfuncsRunStart;
externUint16 Cla1funcsLoadStart, Cla1funcsLoadEnd, Cla1funcsRunStart;
这些外部变量具体定义在什么位置??
D. E.:
回复 Joey Mao:
谢谢回复。如你所述,应该就是这里定义了:
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);配合,完成相关代码的内存拷贝。
可能问题有点大,麻烦了!