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

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

Re: [avr-gcc-list] Unused functions linked?


From: E. Weddington
Subject: Re: [avr-gcc-list] Unused functions linked?
Date: Tue, 14 Jan 2003 13:49:52 -0700

On 15 Jan 2003 at 6:53, Simon Burton wrote:

> 
> 
> I have noticed functions that i don't call still end up in the .hex
> file. This is even though i use a single file,
> 
> avr-gcc -Os -g -mmcu=at90s2313 -c iobox.c
> avr-gcc -Os -g -mmcu=at90s2313 -o iobox.elf iobox.o
> avr-objcopy -j .text -j .data -O ihex iobox.elf iobox.hex
> 
> There is an "avr-strip", can i use this somehow? Obviously not on the
> .o file since we lose "main" etc.
> 

Please read the Binutils User Manual online:
http://www.gnu.org/manual/binutils-2.12/html_mono/binutils.html
and read about the program strip.

Eric
avr-gcc-list at http://avr1.org



reply via email to

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