- compiling caiping.c...
- linking...
- *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
- SEGMENT: ?PR?_H_LINE?CAIPING
- *** ERROR L107: ADDRESS SPACE OVERFLOW
- SPACE: DATA
- SEGMENT: _DATA_GROUP_
- LENGTH: 0034H
- Program Size: data=127.4 xdata=0 code=6507
- Target not created
复制代码
我选的是AT89C52,按理来说128B的RAM是够得啊,为什么编译不了。直到我把其中一个数组的长度从9改为5,变成如下才能通过编译:
- Build target 'Target 1'
- compiling caiping.c...
- linking...
- *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
- SEGMENT: ?PR?_H_LINE?CAIPING
- Program Size: data=111.4 xdata=0 code=6491
- creating hex file from "caiping"...
- "caiping" - 0 Error(s), 1 Warning(s).
复制代码
数组改为长度6也是不行的:
- Build target 'Target 1'
- compiling caiping.c...
- linking...
- *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
- SEGMENT: ?PR?_H_LINE?CAIPING
- *** ERROR L107: ADDRESS SPACE OVERFLOW
- SPACE: DATA
- SEGMENT: ?DT?CAIPING
- LENGTH: 002CH
- *** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
- SYMBOL: COUNT_TIME0
- SEGMENT: ?DT?CAIPING
- *** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
- SYMBOL: SNAKE_W
- SEGMENT: ?DT?CAIPING
- *** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
- SYMBOL: PY
- SEGMENT: ?DT?CAIPING
- *** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
- SYMBOL: PX
- SEGMENT: ?DT?CAIPING
- *** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
- SYMBOL: I
- SEGMENT: ?DT?CAIPING
- *** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
- SYMBOL: PX_BUF
- SEGMENT: ?DT?CAIPING
- *** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
- SYMBOL: SNAKE_L
- SEGMENT: ?DT?CAIPING
- *** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
- SYMBOL: KEYNUM2
- SEGMENT: ?DT?CAIPING
- *** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
- SYMBOL: NRAND2
- SEGMENT: ?DT?CAIPING
- *** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
- SYMBOL: NRAND1
- SEGMENT: ?DT?CAIPING
- *** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
- SYMBOL: SCORE
- SEGMENT: ?DT?CAIPING
- *** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
- SYMBOL: KEYNUM
- SEGMENT: ?DT?CAIPING
- *** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
- SYMBOL: STAGE
- SEGMENT: ?DT?CAIPING
- *** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
- SYMBOL: SHIWU_Y
- SEGMENT: ?DT?CAIPING
- *** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
- SYMBOL: SHIWU_X
- SEGMENT: ?DT?CAIPING
- *** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
- SYMBOL: PY_BUF
- SEGMENT: ?DT?CAIPING
- Program Size: data=115.4 xdata=0 code=6495
- Target not created
复制代码
求教原因
一周热门 更多>