方法一:
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;
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。