[Top][All Lists]

[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: Rolf Ebert
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 14:53:57 +0100
User-agent: Opera M2/8.50 (Win32, build 7700)

Even if functions are unused in a library that is linked, don't they still end up in the final binary?

No, they don't, otherwise you'd run out of flash space all the time :)

itoa and itoa_full in separate .o files => only the used one gets linked.

itoa and itoa_full in the same .o file  => both are in the flash file.

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


reply via email to

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