__attribute__((at(address)))
其中:
是所需的变量地址。
链接器并非始终能够放置 at 变量属性生成的节。
如果无法将节放置在指定地址,链接器将显示一条错误消息。
const int x1 __attribute__((at(0x10000))) = 10; int x2 __attribute__((at(0x12000))) = 10; int x3 __attribute__((at(0x14000))) = 0; int x4 __attribute__((at(0x16000)));
uint32 |
或者加入:
#include
『本文转载自网络,版权归原作者所有,如有侵权请联系删除』