共2条
1/1 1 跳转至页
20A,10A 2.20A/3.10A编译器的困惑

问
请大家帮忙:
我定义的字库在编译的时候是全部定义了,但是在连接的时候发现少了好多数据。
以下是我的编译和连接结果:
Building configuration: HMS0716 - Debug
Lowinit.c
4 bytes of CODE memory
Errors: none
Warnings: none
USBModel.C
6 964 bytes of CODE memory
824 bytes of CONST memory
97 bytes of DATA memory (+ 10 bytes shared)
Errors: none
Warnings: 6
adc.C
878 bytes of CODE memory
1 byte of CONST memory
28 bytes of DATA memory (+ 25 bytes shared)
Errors: none
Warnings: 6
base.c
128 bytes of CODE memory
0 bytes of DATA memory (+ 1 byte shared)
Errors: none
Warnings: 5
browse.c
1 078 bytes of CODE memory
Errors: none
Warnings: 6
diagnose.c
7 074 bytes of CODE memory
4 bytes of DATA memory (+ 1 byte shared)
Errors: none
Warnings: 39
flashp.c
1 648 bytes of CODE memory
8 bytes of DATA memory (+ 10 bytes shared)
Errors: none
Warnings: 1
g20module.c
484 bytes of CODE memory
0 bytes of DATA memory (+ 42 bytes shared)
Errors: none
Warnings: 3
interface.c
8 116 bytes of CODE memory
41 bytes of CONST memory
7 bytes of DATA memory
Errors: none
Warnings: 8
key.c
2 706 bytes of CODE memory
21 bytes of DATA memory (+ 14 bytes shared)
Errors: none
Warnings: 4
lcd.c
2 370 bytes of CODE memory
37 bytes of CONST memory
2 bytes of DATA memory (+ 6 bytes shared)
Errors: none
Warnings: 6
rtc.c
594 bytes of CODE memory
31 bytes of CONST memory
0 bytes of DATA memory (+ 14 bytes shared)
Errors: none
Warnings: 1
send.c
8 714 bytes of CODE memory
225 bytes of CONST memory
13 bytes of DATA memory (+ 5 bytes shared)
Errors: none
Warnings: 8
subroutine.c
396 bytes of CODE memory
8 bytes of CONST memory
8 bytes of DATA memory (+ 6 bytes shared)
Errors: none
Warnings: 4
test.c
4 650 bytes of CODE memory
96 bytes of CONST memory
0 bytes of DATA memory (+ 10 bytes shared)
Errors: none
Warnings: 8
tysw.c
3 322 bytes of CODE memory
2 bytes of CONST memory
4 bytes of DATA memory (+ 24 bytes shared)
Errors: none
Warnings: 7
variable.c
24 bytes of CONST memory
795 bytes of DATA memory
Errors: none
Warnings: none
watch.c
4 476 bytes of CODE memory
25 bytes of DATA memory (+ 6 bytes shared)
Errors: none
Warnings: 11
ziku.c
icc430.exe -I D:\Program Files\IAR Systems\430\INC\ -I D:\Program Files\IAR Systems\430\INC\CLIB\ -o D:\chenjp\HMS\0716\2.20A\Debug\Obj\ -z2 --no_cse --no_unroll
--no_inline --no_code_motion --debug -e --double=32 D:\chenjp\HMS\0716\2.20A\ziku.c
IAR MSP430 C Compiler V2.20A/W32
Copyright 1996-2003 IAR Systems. All rights reserved.
7 426 bytes of CONST memory
Errors: none
Warnings: none
Linking
xlink.exe D:\chenjp\HMS\0716\2.20A\Debug\Obj\Lowinit.r43 D:\chenjp\HMS\0716\2.20A\Debug\Obj\USBModel.r43 D:\chenjp\HMS\0716\2.20A\Debug\Obj\adc.r43 D:\
chenjp\HMS\0716\2.20A\Debug\Obj\base.r43 D:\chenjp\HMS\0716\2.20A\Debug\Obj\browse.r43 D:\chenjp\HMS\0716\2.20A\Debug\Obj\diagnose.r43 D:\chenjp\HMS\
0716\2.20A\Debug\Obj\flashp.r43 D:\chenjp\HMS\0716\2.20A\Debug\Obj\g20module.r43 D:\chenjp\HMS\0716\2.20A\Debug\Obj\interface.r43 D:\chenjp\HMS\0716\
2.20A\Debug\Obj\key.r43 D:\chenjp\HMS\0716\2.20A\Debug\Obj\lcd.r43 D:\chenjp\HMS\0716\2.20A\Debug\Obj\rtc.r43 D:\chenjp\HMS\0716\2.20A\Debug\Obj\send.r43
D:\chenjp\HMS\0716\2.20A\Debug\Obj\subroutine.r43 D:\chenjp\HMS\0716\2.20A\Debug\Obj\test.r43 D:\chenjp\HMS\0716\2.20A\Debug\Obj\tysw.r43 D:\chenjp\HMS\
0716\2.20A\Debug\Obj\variable.r43 D:\chenjp\HMS\0716\2.20A\Debug\Obj\watch.r43 D:\chenjp\HMS\0716\2.20A\Debug\Obj\ziku.r43 -o D:\chenjp\HMS\0716\2.20A\
Debug\Exe\HMS0716.d43 -rt -l D:\chenjp\HMS\0716\2.20A\Debug\List\HMS0716.map -xms -ID:\Program Files\IAR Systems\430\LIB\ -f D:\Program Files\IAR Systems\
430\config\lnk430F149.xcl D:\Program Files\IAR Systems\430\lib\cl430f.r43 -e_small_write=_formatted_write -e_medium_read=_formatted_read -f D:\Program Files\IAR
Systems\430\config\multiplier.xcl -f D:\Program Files\IAR Systems\430\config\compactmath.xcl
IAR Universal Linker V4.55H/386
Copyright 1987-2003 IAR Systems. All rights reserved.
50 738 bytes of CODE memory
1 071 bytes of DATA memory (+ 87 absolute )
3 783 bytes of CONST memory
Errors: none
Warnings: none
Total number of errors: 0
Total number of warnings: 123
ziku.c已经占用了7426字节CONST Memory。结果连接的时候CONST Memory才3783字节???大家知道是怎么回事吗?我用1.26B编译时就没有问题。 答 1: 结果液晶显示的都是乱码 答 2: 请版主和各位高手帮帮忙,很急啊!!! 答 3: IAR编译器版本兼容性问题,要么贴出程序或到 www.lierda.com 网站下载AQ的试试。 答 4: 请问张冲:
要怎么解决版本兼容性问题? 答 5: 引用: 答 6: 是啊!这是IAR编译器本身的问题,目前还没有好的途径,我现在就用AQ430。 答 7: 怎么这样啊?看来IAR的也不好用的 答 8: char ziku_data[];
main()
{
int i=ziku_data[0]; //强制访问一下就可以了
} 答 9: 好的,我试一下,不过我定义好多数组,岂不是都得走一遍?
我定义的字库在编译的时候是全部定义了,但是在连接的时候发现少了好多数据。
以下是我的编译和连接结果:
Building configuration: HMS0716 - Debug
Lowinit.c
4 bytes of CODE memory
Errors: none
Warnings: none
USBModel.C
6 964 bytes of CODE memory
824 bytes of CONST memory
97 bytes of DATA memory (+ 10 bytes shared)
Errors: none
Warnings: 6
adc.C
878 bytes of CODE memory
1 byte of CONST memory
28 bytes of DATA memory (+ 25 bytes shared)
Errors: none
Warnings: 6
base.c
128 bytes of CODE memory
0 bytes of DATA memory (+ 1 byte shared)
Errors: none
Warnings: 5
browse.c
1 078 bytes of CODE memory
Errors: none
Warnings: 6
diagnose.c
7 074 bytes of CODE memory
4 bytes of DATA memory (+ 1 byte shared)
Errors: none
Warnings: 39
flashp.c
1 648 bytes of CODE memory
8 bytes of DATA memory (+ 10 bytes shared)
Errors: none
Warnings: 1
g20module.c
484 bytes of CODE memory
0 bytes of DATA memory (+ 42 bytes shared)
Errors: none
Warnings: 3
interface.c
8 116 bytes of CODE memory
41 bytes of CONST memory
7 bytes of DATA memory
Errors: none
Warnings: 8
key.c
2 706 bytes of CODE memory
21 bytes of DATA memory (+ 14 bytes shared)
Errors: none
Warnings: 4
lcd.c
2 370 bytes of CODE memory
37 bytes of CONST memory
2 bytes of DATA memory (+ 6 bytes shared)
Errors: none
Warnings: 6
rtc.c
594 bytes of CODE memory
31 bytes of CONST memory
0 bytes of DATA memory (+ 14 bytes shared)
Errors: none
Warnings: 1
send.c
8 714 bytes of CODE memory
225 bytes of CONST memory
13 bytes of DATA memory (+ 5 bytes shared)
Errors: none
Warnings: 8
subroutine.c
396 bytes of CODE memory
8 bytes of CONST memory
8 bytes of DATA memory (+ 6 bytes shared)
Errors: none
Warnings: 4
test.c
4 650 bytes of CODE memory
96 bytes of CONST memory
0 bytes of DATA memory (+ 10 bytes shared)
Errors: none
Warnings: 8
tysw.c
3 322 bytes of CODE memory
2 bytes of CONST memory
4 bytes of DATA memory (+ 24 bytes shared)
Errors: none
Warnings: 7
variable.c
24 bytes of CONST memory
795 bytes of DATA memory
Errors: none
Warnings: none
watch.c
4 476 bytes of CODE memory
25 bytes of DATA memory (+ 6 bytes shared)
Errors: none
Warnings: 11
ziku.c
icc430.exe -I D:\Program Files\IAR Systems\430\INC\ -I D:\Program Files\IAR Systems\430\INC\CLIB\ -o D:\chenjp\HMS\0716\2.20A\Debug\Obj\ -z2 --no_cse --no_unroll
--no_inline --no_code_motion --debug -e --double=32 D:\chenjp\HMS\0716\2.20A\ziku.c
IAR MSP430 C Compiler V2.20A/W32
Copyright 1996-2003 IAR Systems. All rights reserved.
7 426 bytes of CONST memory
Errors: none
Warnings: none
Linking
xlink.exe D:\chenjp\HMS\0716\2.20A\Debug\Obj\Lowinit.r43 D:\chenjp\HMS\0716\2.20A\Debug\Obj\USBModel.r43 D:\chenjp\HMS\0716\2.20A\Debug\Obj\adc.r43 D:\
chenjp\HMS\0716\2.20A\Debug\Obj\base.r43 D:\chenjp\HMS\0716\2.20A\Debug\Obj\browse.r43 D:\chenjp\HMS\0716\2.20A\Debug\Obj\diagnose.r43 D:\chenjp\HMS\
0716\2.20A\Debug\Obj\flashp.r43 D:\chenjp\HMS\0716\2.20A\Debug\Obj\g20module.r43 D:\chenjp\HMS\0716\2.20A\Debug\Obj\interface.r43 D:\chenjp\HMS\0716\
2.20A\Debug\Obj\key.r43 D:\chenjp\HMS\0716\2.20A\Debug\Obj\lcd.r43 D:\chenjp\HMS\0716\2.20A\Debug\Obj\rtc.r43 D:\chenjp\HMS\0716\2.20A\Debug\Obj\send.r43
D:\chenjp\HMS\0716\2.20A\Debug\Obj\subroutine.r43 D:\chenjp\HMS\0716\2.20A\Debug\Obj\test.r43 D:\chenjp\HMS\0716\2.20A\Debug\Obj\tysw.r43 D:\chenjp\HMS\
0716\2.20A\Debug\Obj\variable.r43 D:\chenjp\HMS\0716\2.20A\Debug\Obj\watch.r43 D:\chenjp\HMS\0716\2.20A\Debug\Obj\ziku.r43 -o D:\chenjp\HMS\0716\2.20A\
Debug\Exe\HMS0716.d43 -rt -l D:\chenjp\HMS\0716\2.20A\Debug\List\HMS0716.map -xms -ID:\Program Files\IAR Systems\430\LIB\ -f D:\Program Files\IAR Systems\
430\config\lnk430F149.xcl D:\Program Files\IAR Systems\430\lib\cl430f.r43 -e_small_write=_formatted_write -e_medium_read=_formatted_read -f D:\Program Files\IAR
Systems\430\config\multiplier.xcl -f D:\Program Files\IAR Systems\430\config\compactmath.xcl
IAR Universal Linker V4.55H/386
Copyright 1987-2003 IAR Systems. All rights reserved.
50 738 bytes of CODE memory
1 071 bytes of DATA memory (+ 87 absolute )
3 783 bytes of CONST memory
Errors: none
Warnings: none
Total number of errors: 0
Total number of warnings: 123
ziku.c已经占用了7426字节CONST Memory。结果连接的时候CONST Memory才3783字节???大家知道是怎么回事吗?我用1.26B编译时就没有问题。 答 1: 结果液晶显示的都是乱码 答 2: 请版主和各位高手帮帮忙,很急啊!!! 答 3: IAR编译器版本兼容性问题,要么贴出程序或到 www.lierda.com 网站下载AQ的试试。 答 4: 请问张冲:
要怎么解决版本兼容性问题? 答 5: 引用: 答 6: 是啊!这是IAR编译器本身的问题,目前还没有好的途径,我现在就用AQ430。 答 7: 怎么这样啊?看来IAR的也不好用的 答 8: char ziku_data[];
main()
{
int i=ziku_data[0]; //强制访问一下就可以了
} 答 9: 好的,我试一下,不过我定义好多数组,岂不是都得走一遍?
共2条
1/1 1 跳转至页
回复
有奖活动 | |
---|---|
【EEPW电子工程师创研计划】技术变现通道已开启~ | |
发原创文章 【每月瓜分千元赏金 凭实力攒钱买好礼~】 | |
【EEPW在线】E起听工程师的声音! | |
“我踩过的那些坑”主题活动——第001期 | |
高校联络员开始招募啦!有惊喜!! | |
【工程师专属福利】每天30秒,积分轻松拿!EEPW宠粉打卡计划启动! | |
送您一块开发板,2025年“我要开发板活动”又开始了! | |
打赏了!打赏了!打赏了! |
打赏帖 | |
---|---|
【我踩过的那些坑】STM32的硬件通讯调试过程的“坑”被打赏50分 | |
【我踩过的那些坑】晶振使用的问题被打赏100分 | |
【我踩过的那些坑】电感选型错误导致的处理器连接不上被打赏50分 | |
【我踩过的那些坑】工作那些年踩过的记忆深刻的坑被打赏10分 | |
【我踩过的那些坑】DRC使用位置错误导致的问题被打赏100分 | |
我踩过的那些坑之混合OTL功放与落地音箱被打赏50分 | |
汽车电子中巡航控制系统的使用被打赏10分 | |
【我踩过的那些坑】工作那些年踩过的记忆深刻的坑被打赏100分 | |
分享汽车电子中巡航控制系统知识被打赏10分 | |
分享安全气囊系统的检修注意事项被打赏10分 |