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

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

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


From: Alan Kilian
Subject: [avr-gcc-list] Linking and unused functions.
Date: Wed, 3 Mar 2004 16:58:53 -0600 (CST)


  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

-- 
- Alan Kilian <alank(at)timelogic.com> 
Director of Bioinformatics, TimeLogic Corporation 763-449-7622 

_______________________________________________
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]