求解 *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?_FILL_BYTE

Technical Support
Support Resources
Product Information
&&/&&Technical Support
BL51: WARNING 16 (UNCALLED SEGMENT, IGNORED FOR OVERLAY ...)
Information in this article applies to:
C51 Version 5.50
When I attempt to link my project, the linker responds with the
following diagnostic:
WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: segment-name
This warning occurs when functions which are not called are
contained in a program (e.g. for test purposes). The function
specified is excluded from the overlay process in this case. Often
this warning is accompanied by
ERROR L107: ADDRESS SPACE OVERFLOW
If you fix the uncalled warning, then Error 107 is often cleared
There are two ways to solve this problem.
Call the uncalled function from somewhere in your program.
Remove or #if out the function that is not called. You can do
that using #if 0 in front of and #endif after the uncalled
function. For example:
void uncalled_function (void)
MORE INFORMATION
in the BL51 User's Guide.
in the BL51 User's Guide.
FORUM THREADS
The following
threads may
provide information related to this topic.
Last Reviewed: Friday, July 15, 2005
Did this article provide the answer you needed?
Development Tools
Hardware & Collateral
Important information
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our .
Don't show this message again
Privacy Policy Update
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our
to learn more about our collection, use and transfers
of your data.
Accept and hide this message
/support/docs/875.aspkeil c51 编程出现警告 WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?CO?_百度知道
keil c51 编程出现警告 WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?CO?
keilc51编程出现警告WARNINGL16:UNCALLEDSEGMENT,IGNOREDFOROVERLAYPROCESSSEGMENT:?CO?zidong这通常是什么问题?...
keil c51 编程出现警告 WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?CO?zidong这通常是什么问题?
答题抽奖
首次认真答题后
即可获得3次抽奖机会,100%中奖。
知道合伙人
采纳数:16
获赞数:46
zidong 应该是你的这个 函数或者参数 定义了 但是在程序中没有使用
这是我编程的文件,zidong.c
16:那你第16行 有没有定义什么变量函数之类的 但是没有使用
不是,不知道啥意思,16行没有错误
uchar code table[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80};
你定义了这么一个数组 但是在后面的程序中你没有使用他 如果你不使用的话 把它删掉 就没有警告了
为你推荐:
其他类似问题
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。我总结的KEIL51调试的错误总结_百度文库
您的浏览器Javascript被禁用,需开启后体验完整功能,
享专业文档下载特权
&赠共享文档下载特权
&10W篇文档免费专享
&每天抽奖多种福利
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
我总结的KEIL51调试的错误总结
&&初学者的参考资料
阅读已结束,下载本文需要
定制HR最喜欢的简历
下载文档到电脑,同时保存到云知识,更方便管理
加入VIP
还剩2页未读,
定制HR最喜欢的简历
你可能喜欢用keil,编译问题 WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?MAIN?1_3_百度知道
用keil,编译问题 WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?MAIN?1_3
#include&reg52.h&#defineucharunsignedchar#defineuintunsignedintsbitkey1=P3^4;sbitkey2=P3^5;sbitkey3=P3^6;sbitkey4=P3^7;sbitdula=P2^6;sbitwela=P2^7;ucharcodetable[]={0x3f,...
#include&reg52.h&#define uchar unsigned char#define uint unsigned intsbit key1=P3^4;sbit key2=P3^5;sbit key3=P3^6;sbit key4=P3^7;sbit dula=P2^6;sbit wela=P2^7;uchar code table[]={ 0x3f,0x06,0x5b,0x4f, 0x66,0x6d,0x7d,0x07, 0x7f,0x6f,0x77,0x7c, 0x39,0x5e,0x79,0x71}; void delayms(uint); uchar numt0, void display(uchar numdis) {
uchar shi,
shi=numdis/10;
ge=numdis%10;
P0=table[shi];
delayms(5);
P0=table[ge];
delayms(5);
void delayms(uint xms)
for(i=i&0;i--);
for(i=110;j&0;j--);
void init()
TMOD=0x01;
TH0=()/256;
TL0=()%256;
void keyscan()
if(key1==0)
delayms(10);
if(key1==0)
if(num==60)
while(!key1);
if(key2==0)
delayms(10);
if(key2==0)
if(num==0)
while(!key2);
if(key3==0)
delayms(10);
if(key3==0)
while(!key3);
if(key4==0)
delayms(10);
if(key4==0)
while(!key4);
void main()
keyscan();
display(num);
void T0_time() interrupt 1
TH0=()/256;
TL0=()%256;
if(numt0==20)
if(num==60)
答题抽奖
首次认真答题后
即可获得3次抽奖机会,100%中奖。
小鹰隼_知道合伙人
采纳数:47
获赞数:136
开头的这个void delayms(uint);声明很多余,删掉就好了。
但后面要用到delayms啊
如果你的函数的定义是放在了主函数的后面,需要在主函数中进行声明。而你现在函数在主函数前面,所以不需要在主函数中进行声明,更不需要在程序的最前面进行声明。
但这应该不是编译不成功的原因吧,顶多只是多余而已
waraing应该都不会影响编译的。编译不成功应该是函数出现了error。
Keil报错就是题目中的那个,查了半天不知哪错了
delayms函数中,应该是j=110吧,你写成i=110了。除了我说的这两个,其他到时没发现什么大问题。出不来hex文件?
为你推荐:
其他类似问题
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。}

我要回帖

更多关于 FORANFERE 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信