Increased RAM usage after upgrade to newlib 4.3.0

Sebastian Huber sebastian.huber@embedded-brains.de
Thu Jan 22 12:34:57 GMT 2026


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: sebastian.huber@embedded-brains.de
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/


More information about the Newlib mailing list