[开发工具] IAR 启动代码 这个警告如何消除?

[复制链接]
9095|4
 楼主| crazybee 发表于 2014-9-1 16:31 | 显示全部楼层 |阅读模式
Warning[25]: Label 'Reset_Handler' is defined pubweak in a section implicitly declared root

按以下的方法,  添加了NOROOT(2) ,变语法错误了,这是啥原因,V7.20  IAR,,, k别外 NOROOT(2)  这里的数字 2,是指该段内的标号个数吗?

IAR ASM手册也只是简单介绍一下;


After upgrading to EWARM 7.10.1 the Warning[25] is issued during assembly of a file that assembled without warning on earlier version of EWARM.

Background

The assembler (iasmarm) is (from EWARM 7.10.1) issuing Warning[25] for a deprecated assembler construction.

The deprecated assembler source construction looks like this:

       PUBWEAK NMI_Handler
       SECTION .text:CODE:REORDER(1)
   NMI_Handler
Solution

To avoid the warning, add ":NOROOT" to the "SECTION" statement:

       PUBWEAK NMI_Handler
       SECTION .text:CODE:REORDER:NOROOT(1)
   NMI_Handler
Rain_King 发表于 2014-9-1 16:56 | 显示全部楼层
这个警告我以前也遇到过,怎么解决的,给搞忘了....
 楼主| crazybee 发表于 2014-9-2 10:40 | 显示全部楼层
找到原因了,Warning[22]: Set section alignment the same (2) ;一个 (2)说明就可以了;
yaoyyie2003 发表于 2014-9-22 14:46 | 显示全部楼层
IAR真是坑啊
HORSE7812 发表于 2014-11-17 17:11 | 显示全部楼层
您需要登录后才可以回帖 登录 | 注册

本版积分规则

个人签名:MSN: ihuangwh@foxmail.com

149

主题

800

帖子

5

粉丝
快速回复 在线客服 返回列表 返回顶部