这些小活动你都参加了吗?快来围观一下吧!>>
电子产品世界 » 论坛首页 » 综合技术 » 基础知识 » 20A,10A 2.20A/3.10A编译器的困惑

共2条 1/1 1 跳转至

20A,10A 2.20A/3.10A编译器的困惑

院士
2006-09-17 18:14:16     打赏
20A,10A 2.20A/3.10A编译器的困惑



关键词: 2.20A     3.10A     编译器     困惑    

院士
2006-12-22 22:43:00     打赏
2楼
问 请大家帮忙:
我定义的字库在编译的时候是全部定义了,但是在连接的时候发现少了好多数据。
以下是我的编译和连接结果:
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 跳转至

回复

匿名不能发帖!请先 [ 登陆 注册 ]