码迷,mamicode.com
首页 > 其他好文 > 详细

__attribute__特性介绍以及变量和函数特定布局设置

时间:2015-07-06 08:50:42      阅读:140      评论:0      收藏:0      [点我收藏+]

标签:

ARM的MDK编译__attribute__介绍:http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0348bc/Ciafccai.html
 比如实现flash特定布局,在ISP和IAP中使用:
1.变量定义或声明const unsigned char IAP[] __attribute__((section("flash.updatable"), used))
2.链接文件设置:LR_ROM_UPDATE   0x00000000 0x00004000
{
    ER_FLASH_UPDATE   +0    UNINIT
    {
        *(flash.updatable)
    }
}
ScatterAssert(ImageLimit(LR_ROM_UPDATE) <= 0x00004000)

__attribute__特性介绍以及变量和函数特定布局设置

标签:

原文地址:http://www.cnblogs.com/swing07/p/4623444.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!