Forum Discussion
Altera_Forum
Honored Contributor
20 years agoHow to enable reduced-footprint C library?
_Reen struct thread-local data is allocated at the top of the task’s stack. Therefore, you need to make allowance when allocating memory for stacks. In general, the _reent structure consumes app...
Altera_Forum
Honored Contributor
20 years agoI cann't recall if there is a "no reentrance" flag for it.
I am not sure if the default newlib is configured to configure.host.smallc. Maybe you should try another lib set, than the default newlib. Rebuild newlib with smallc or use uClibc. If you are using uC/OSII, you should not use default libs. You should use most of them of of the uC/OSII's lib. You can use -nostdinc and -nostdlib flags to select the includes and libs on gcc.