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: Russell Shaw
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 21:34:56 +1100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.11) Gecko/20050914 Debian/1.7.11-1

Daniel O'Connor wrote:
On Sat, 19 Nov 2005 19:20, Russell Shaw wrote:

I'd rather use something like

#define _USE_FULL_ITOA
#include <stdlib.h>

... itoa(x, s, 13);

That won't save any library space tho. If the reduced version is faster
and saves a lot of space, then it could be worthwhile having a compile-time
option.

It will if it's implemented correctly, eg in stdlib.h

#ifdef _USE_FULL_ITOA
#define itoa _itoa_full
#else
#define itoa _itoa_small
#endif

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




reply via email to

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