For example: time.c Typedef struct __timer { Volatile unsigned int ctrl; Volatile unsigned char tmr; }Simer; #pragma arm section zidata=”timer” Simer systimer; #pragma arm section zidata
LOAD 0X00000 0X200000 { ……. …….. LOCATION_TIMER 0x800000 { Time.o(timer) } //此时可以将这个结构体定位到0x800000起始的地址处 }
我想将这个结构体定位到0x800000的地址上上面的代码可否能够实现
|