[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Unused functions linked?
From: |
Simon Burton |
Subject: |
Re: [avr-gcc-list] Unused functions linked? |
Date: |
Wed, 15 Jan 2003 06:53:12 +1100 |
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.
bye,
Simon.
--
Simon Burton, B.Sc.
Licensed PO Box A66
ANU Canberra 2601
Australia
Ph. 02 6249 6940 \
------------------------\
------------------------/
http://arrowtheory.com /
avr-gcc-list at http://avr1.org