一共有3种方法,具体如下:
方法一:
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;
这个方法不错!
感谢楼主的分享,很实用了。
干货
学习一下
感谢楼主分享