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: smaller ramsize for newlib-nano builds


On Jan 31 17:50, Jaap de Wolff wrote:
> Hello,
> 
>  
> 
> I am working with embedded systems with have very limited ram resources.
> 
> As known current version of the newlib-nano build uses 364 bytes of ram for
> __global_locale
> 
>  
> 
> When configured with 
> 
> CFLAGS_FOR_TARGET='-Os -ffunction-sections -fdata-sections
> -D_NANO_NO_GLOBAL_LOCALE'

This build option should be available via a configure option, ideally.
Also, the change itself basically changes __global_locale to read only,
so I wonder if the name of the option shouldn't reflect that, kind of
like

  ./configure --enable-readonly-locale

or

  ./configure --enable-const-locale

> and the following modification below I was able to move __global_locale to
> rom.
> 
> I realize that MB_CAPABLE must be off for this modification, but are there
> other implications?

I don't think so, but a potential patch submission should make sure that
under normal circumstances no write access occurs with this option.


Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat

Attachment: signature.asc
Description: PGP signature


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