Re: Increased RAM usage after upgrade to newlib 4.3.0

Sebastian Huber <[email protected]> Thu, 22 Jan 2026 13:34:57 +0100 (CET)
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
Hello Pavel,

if you would like to reduce the memory footprint, then you can try out piclolibc as mentioned. You can also try using thread-local storage for the libc thread-specific data through the _REENT_THREAD_LOCAL option. Another option is to change the struct reent initialization for the _REENT_SMALL initialization to dynamically check if the stdio file streams are NULL before they are used. If they are NULL, then they are initialized to use the global __sf[] objects.

Kind regards,
Sebastian

-- 
embedded brains GmbH & Co. KG
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: [email protected]
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/