This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
RE: printf size requirement
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'Joel Sherrill'" <joel dot sherrill at oarcorp dot com>, "'Newlib Mailing List'" <newlib at sourceware dot org>
- Date: Mon, 23 Apr 2007 15:43:09 +0100
- Subject: RE: printf size requirement
- References: <462CC3FE.6070905@oarcorp.com>
On 23 April 2007 15:35, Joel Sherrill wrote:
> + wide character support is in both and is about .75K
> + printf version includes the "mprec" code, references
soft float, etc.
> + both include locale code
> Even on a bare, minimal target, by the time you flesh
> out all the missing symbols, how small is "hello world"?
>
> And the USD64K question: Can it be smaller?
Could try playing with a few of the more advanced configure options:
--enable-newlib-reent-small enable small reentrant struct support
--enable-newlib-io-pos-args enable printf-family positional arg support
--enable-newlib-io-long-long enable long long type support in IO functions
like printf/scanf
--enable-newlib-io-long-double enable long double type support in IO
functions printf/scanf
--enable-newlib-mb enable multibyte support
--disable-newlib-atexit-alloc disable dynamic allocation of atexit
entries
--enable-newlib-reent-small enable small reentrant struct support
--enable-target-optspace optimize for space
--disable-newlib-io-float disable printf/scanf family float support
cheers,
DaveK
--
Can't think of a witty .sigline today....