avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Linking and unused functions.


From: E. Weddington
Subject: Re: [avr-gcc-list] Linking and unused functions.
Date: Wed, 03 Mar 2004 16:15:40 -0700

On 3 Mar 2004 at 16:58, Alan Kilian wrote:

> 
> 
>   I have been trying to use the avrlib from Pascal Stang
>   <http://hubbard.engr.scu.edu/embedded/avr/avrlib/>
>   on an AT90S2313 and at first, I thought the code was huge,
>   but on further analysis, it appears that every function in
>   a .o file gets linked even if it is never used.
> 
>   I edited lcd.c and timer.c to remove unused functions and the
>   size of the hex file dropped dramatically. It's now about 10%
>   of what it was before.
> 
>   I am not used to this behavior. I'm used to having only the
>   functions actually called getting linked into the hex file.
> 
>   Is there something I'm doing incorrectly?
> 
>                           -Alan

Possibly.

What's your command line?

Have you read the GCC User Manual about linking in libraries, and corresponding 
command line switches? 


_______________________________________________
avr-gcc-list mailing list
address@hidden
http://www.avr1.org/mailman/listinfo/avr-gcc-list


reply via email to

[Prev in Thread] Current Thread [Next in Thread]