avr-libc-dev
[Top][All Lists]
Advanced

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

Re: [avr-libc-dev] Re: [avr-gcc-list] Poll: Who uses itoa() & co with ba


From: Joerg Wunsch
Subject: Re: [avr-libc-dev] Re: [avr-gcc-list] Poll: Who uses itoa() & co with base != {2, 8, 10, 16}?
Date: Sat, 19 Nov 2005 20:08:54 +0100
User-agent: Mutt/1.4.2.1i

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. ;-)





reply via email to

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