打印

keil编译器报警出错,溢出,求程序代码优化建议

[复制链接]
6355|1
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
zhaohualiang|  楼主 | 2010-12-29 08:57 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我用的单片机是stc89c58,用small模式编译时出现下面警告,选用Compact或large时代码运行正常,但是速度慢,采集数据容易漏掉。最初程序比较小,我定义的变量都是data,随着程序增加,编译不了,变量全定义为idata,到现在程序又增加了,出现下面问题,是不是要优化程序代码,希望各位给点意见。
*** ERROR L107: ADDRESS SPACE OVERFLOW
    SPACE:   IDATA   
    SEGMENT: ?ID?TEXT1
    LENGTH:  0036H
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
    SYMBOL:  TEXT_STARTADDR
    SEGMENT: ?ID?TEXT1
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
    SYMBOL:  T
    SEGMENT: ?ID?TEXT1
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
    SYMBOL:  DIFFER
    SEGMENT: ?ID?TEXT1
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
    SYMBOL:  P
    SEGMENT: ?ID?TEXT1
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
    SYMBOL:  TEMP5
    SEGMENT: ?ID?TEXT1
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
    SYMBOL:  TEMP4
    SEGMENT: ?ID?TEXT1
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
    SYMBOL:  TEMP3
    SEGMENT: ?ID?TEXT1
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
    SYMBOL:  TEMP2
    SEGMENT: ?ID?TEXT1
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
    SYMBOL:  TEMP1
    SEGMENT: ?ID?TEXT1
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
    SYMBOL:  OUT
    SEGMENT: ?ID?TEXT1
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
    SYMBOL:  SIZE_LIE
    SEGMENT: ?ID?TEXT1
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
    SYMBOL:  KL
    SEGMENT: ?ID?TEXT1
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
    SYMBOL:  KH
    SEGMENT: ?ID?TEXT1
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
    SYMBOL:  TEXTSIZE_L
    SEGMENT: ?ID?TEXT1
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
    SYMBOL:  TEXTSIZE_H
    SEGMENT: ?ID?TEXT1
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
    SYMBOL:  MAX
    SEGMENT: ?ID?TEXT1
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
    SYMBOL:  TEXT_STARTADDR_L
    SEGMENT: ?ID?TEXT1
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
    SYMBOL:  ZERO
    SEGMENT: ?ID?TEXT1
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
    SYMBOL:  BIAODING
    SEGMENT: ?ID?TEXT1
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
    SYMBOL:  TEXT_STARTADDR_H
    SEGMENT: ?ID?TEXT1
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
    SYMBOL:  SIZE_HANG
    SEGMENT: ?ID?TEXT1
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
    SYMBOL:  LENGTH5
    SEGMENT: ?ID?TEXT1
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
    SYMBOL:  LENGTH4
    SEGMENT: ?ID?TEXT1
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
    SYMBOL:  LENGTH3
    SEGMENT: ?ID?TEXT1
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
    SYMBOL:  LENGTH2
    SEGMENT: ?ID?TEXT1
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
    SYMBOL:  LENGTH1
    SEGMENT: ?ID?TEXT1
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
    SYMBOL:  LENGTH0
    SEGMENT: ?ID?TEXT1
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
    SYMBOL:  DISPLAY_F
    SEGMENT: ?ID?TEXT1
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
    SYMBOL:  EEPROM
    SEGMENT: ?ID?TEXT1
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
    SYMBOL:  OUT1
    SEGMENT: ?ID?TEXT1
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
    SYMBOL:  OUT0
    SEGMENT: ?ID?TEXT1
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
    SYMBOL:  LENGTH
    SEGMENT: ?ID?TEXT1
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
    SYMBOL:  TEXTSIZE
    SEGMENT: ?ID?TEXT1
Program Size: data=267.0 xdata=0 code=21822
Target not created

相关帖子

沙发
ayb_ice| | 2010-12-29 09:19 | 只看该作者
变量太多,超过了IDATA空间256字节
建议依然选择小模式编译,但将不常用的,大的变量改成pdata,xdata...

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

52

主题

218

帖子

1

粉丝