This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: printf size requirement


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]