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: newlib _REENT_SMALL


fpaolo63 wrote:
Hi all,
I'm new on newlib.

I just made running my lpc23xx GNU tools chain on UBUNTU.
binutil 2.17, GCC 4.2.1, newlib 1.15, gdb 6.6

I wrote my own syslib, and I run a rtos application.
Now, I'd to reduce the memory footprint of the REENT support.

I have rebuilt the newlib setting _REENT_SMALL
(newlib_cflags="-DSMALL_MEMORY -D_REENT_SMALL").
Application is working fine but "struct _reent"  on my application  is
again ~1k.

If you are always going to use _REENT_SMALL, then do it in libc/include/sys/config.h.
This means that nothing will accidentally get built without the flag on and this
files gets included whenever a user includes a newlib header file (i.e. application and
newlib are consistent).


If you just want to try it out, specify --enable-newlib-reent-small when you configure newlib.
This will set _REENT_SMALL in libc/include/sys/config.h for you.


-- Jeff J.


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