At 11:50 PM 4/15/2006, r_bottleneck wrote:
>Is there anybody who already tired to generate a library for the
>EFSL by Sourceforge using the Imagecraft ICCARM Compiler ?
>
>Most of the modules can be compiled without problems. However,
>I'm getting some strange warnings in some of them during object file
>generation, like
>
> - unreachable code
> - arguments with no use
>
> - local variable is used but the references are unreachable
> - calling function without prototype
>
>I assume there are problems due to different syntax between ICCARM
>and the GNU Compiler. Are there similar warnings while compilation
>with the GNU compiler ? (I do not know the GNU)
>
>I understand the reason for the first two warnings , but I'm almost a
>bit frustrated because I'm unable to find the reason for last two.
You can try to email us :-)
"local variable is used but the references are unreachable" means, for example
void foo() {
int i;
...
while (1) ...
...i;
If there is no break with the while loop, the code after the loop is
unreachable, so even if "i" is used in that case, it is unreachable.
"calling function without prototype" is when you call a function without
declaring its return type and argument types. This can cause trouble for
example if the function is expecting a double argument but you only pass an
int. If the function prototype is there, everything is OK since the
compiler will then generate the correct type promotion. Without it, the
code generated may not be what you expect.
>Any information is appreciated.
>
>Thanks
>
>
>
>
>
>
>SPONSORED LINKS
><http://groups.yahoo.com/gads?t=ms&k=Microcontrollers&w1=Microcontrollers&w2=Microprocessor&w3=Intel+microprocessors&c=3&s=69&.sig=c-HXthtbZy4TZbI3ib0PMg>Microcontrollers
><http://groups.yahoo.com/gads?t=ms&k=Microprocessor&w1=Microcontrollers&w2=Microprocessor&w3=Intel+microprocessors&c=3&s=69&.sig=ijt0SspWtjogcHCuFD0lUQ>Microprocessor
><http://groups.yahoo.com/gads?t=ms&k=Intel+microprocessors&w1=Microcontrollers&w2=Microprocessor&w3=Intel+microprocessors&c=3&s=69&.sig=WOZdpklkgHbXR5quAgrl5w>Intel
>microprocessors
>
>
>----------
>YAHOO! GROUPS LINKS
>
> * Visit your group "<http://groups.yahoo.com/group/lpc2000>lpc2000"
> on the web.
> *
> * To unsubscribe from this group, send an email to:
> *
> <mailto:lpc2000-unsubscribe@yahoogroups.com?subject=Unsubscribe>lpc2000-unsubscribe@yahoogroups.com
>
> *
> * Your use of Yahoo! Groups is subject to the
> <http://docs.yahoo.com/info/terms/>Yahoo! Terms of Service.
>
>
>----------
// richard (This email is for mailing lists. To reach me directly, please
use richard at imagecraft.com)Message
Re: [lpc2000] Problems with efsl and Imagecraft C-Compiler .
2006-04-16 by Richard
Attachments
- No local attachments were found for this message.