2007年3月23日金曜日

warning 126: unreachable code

USBのファームウェア、書いてSDCCでコンパイルしています…
Fenrirさんのコードでは何のエラーもなくmakeできているように見えますが

俺が俺のコードをコンパイルすると こんなん出ます~(make.log
fw.c:277: warning 126: unreachable code

?ASlink-Warning-Undefined Global '__nop_' referenced by module 'funnykbd'
make: *** [funnykbd.ihx] Error 1

どなたか、なにかご存知でしょうか????

Malefile
funnykbd.c
dscr.asm

Fenrirさんのものに手を加えたつもりがないもの:
fw.c
USBJmpTb.asm

1 件のコメント:

Unknown さんのコメント...

自己コメ

http://www.mail-archive.com/sdcc-user@lists.sourceforge.net/msg00649.html


Re: [Sdcc-user] Some sdcc warnings

Luit van Drongelen
Wed, 21 Mar 2007 08:29:15 -0800

the first depends on what code is unreachable, and whether it's really
unreachable. can be a problem caused by a curly bracket in the wrong place
or by a while (1) {} loop.
the second I don't know about... what it means isn't clear to me

more importantly... they're warnings... they might not be relevant. if the
code it compiles correctly and does what you want it to do, you can safely
ignore them I guess... but finding out why these warnings are generated is
always the best option.

Regards,
Luit

2007/3/21, Vineet Golchha <[EMAIL PROTECTED]>:

Hello group,
Have recently started using the SDCC compiler for 8051 controllers.
I found two warnings coming up when I compile the code.

1. warning 126 : unreachable code.
2. warning 59 : conditional flow changed by optimizer.

Queries:

1.Can anyone tell me what this means?
2.Also can they be ignored?


Best Regards,
Vineet.




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

* [Sdcc-user] Some sdcc warnings Vineet Golchha
o
Re: [Sdcc-user] Some sdcc warnings Luit van Drongelen
o Re: [Sdcc-user] Some sdcc warnings Jean-Paul
+ Re: [Sdcc-user] Some sdcc warnings Vineet Golchha
# Re: [Sdcc-user] Some sdcc warnings Raphael Neider
* Re: [Sdcc-user] Some sdcc warnings Ori Idan
# Re: [Sdcc-user] Some sdcc warnings Jean-Paul
o Re: [Sdcc-user] Some sdcc warnings Jan Waclawek