As Rolf Ebert wrote:

> if you use -ffunction_sections and -Wl,--gc-sections in the latter
> case then the linker also strips unused functions from the flash
> file

Except these source files are assembly code. ;-) The source would need
to take care to place each function into a subsection of its own.

These are somewhat interweaved actually, e.g. itoa_fast and
itoa_fast_width (IIRC) would share the same source code (they
are just different entries into the same code).  But yes, the
standard (slow) itoa functions would be in a different object
module, thus normally not linked (and subsequently, if no other
division was used inside the program, the division subroutine
would be avoided as well).

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



_______________________________________________
AVR-GCC-list mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to