smaller ramsize for newlib-nano builds
Corinna Vinschen
vinschen@redhat.com
Thu Feb 1 12:57:00 GMT 2018
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20180201/ec17622b/attachment.sig>
More information about the Newlib
mailing list