方法一:
void fun(void) __attribute((section(".ARM.__at_0x8100000")));
方法二:
#pragma arm section code=".ARM.__at_0x8100000"
void fun(void)
{
}
#pragma arm section
定位变量:
int val __attribute__((section(".ARM.__at_0x20000000"))) = 0x00;
方法一:
void fun(void) __attribute((section(".ARM.__at_0x8100000")));
方法二:
#pragma arm section code=".ARM.__at_0x8100000"
void fun(void)
{
}
#pragma arm section
定位变量:
int val __attribute__((section(".ARM.__at_0x20000000"))) = 0x00;