共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网站征稿正在进行时,欢迎踊跃投稿啦 | |
奖!发布技术笔记,技术评测贴换取您心仪的礼品 | |
打赏了!打赏了!打赏了! |
打赏帖 | |
---|---|
与电子爱好者谈读图四被打赏50分 | |
与电子爱好者谈读图二被打赏50分 | |
【FRDM-MCXN947评测】Core1适配运行FreeRtos被打赏50分 | |
【FRDM-MCXN947评测】双核调试被打赏50分 | |
【CPKCORRA8D1B评测】---移植CoreMark被打赏50分 | |
【CPKCORRA8D1B评测】---打开硬件定时器被打赏50分 | |
【FRDM-MCXA156评测】4、CAN loopback模式测试被打赏50分 | |
【CPKcorRA8D1评测】--搭建初始环境被打赏50分 | |
【FRDM-MCXA156评测】3、使用FlexIO模拟UART被打赏50分 | |
【FRDM-MCXA156评测】2、rt-thread MCXA156 BSP制作被打赏50分 |