[coldfire-gnu-discuss] Newlib reentrancy structure overhead

Nathan Sidwell nathan at codesourcery.com
Thu Nov 23 10:46:58 UTC 2006


David Brown wrote:
> Hi,
> 
> Does anyone know if there is a way to get access to the newlib c library 
> functions without the overhead of the re-entrancy support?  When working 
> on a small system, it can be very significant - any standard library 
> function that uses "errno" gets a 1024 byte impure_data structure, and 
> all access to c library global data pass through an extra layer of 
> indirection (reading or setting errno requires a function call).

unfortunately not.  newlib is designed as a reentrant library and has no 
configure option to make it not so.

Of course, such capability could be added, but it would be significant work and 
we have no current plans to do so.

nathan

-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::         CodeSourcery
nathan at codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk




More information about the coldfire-gnu-discuss mailing list