Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2100] Big HEX files -> optimization !

2003-12-24 by Robert Adsett

At 11:32 PM 12/23/03 +0100, you wrote:
>Hello Robert,
>
>i meanwhile have my environment with gcc 3.4 for the LPC2106 running.
>
>I used your initialization file, but got very big HEX files (arund 23 KB for
>a simple example "led.c").
>When you leave out the line
>
>bl              exit            /* Should not return */
>
>then you get a HEX file of around 1,5 KB, because "exit" includes a lot of
>library functions (like malloc, ...)
>I don't think it is really needed, because the endless loop is already doing
>it fine ?
>
>Greetings,
>
>           Martin

Thanks Martin, looking at that I'm not sure why I left that call to exit in 
there.  You're right there is no way to get to it, might as well just get 
rid of it.

Robert





" 'Freedom' has no meaning of itself.  There are always restrictions,
be they legal, genetic, or physical.  If you don't believe me, try to
chew a radio signal. "

                         Kelvin Throop, III

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.