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 approximately 900 bytes of data for the normal C library, or 90 bytes for the reduced-footprint C library. How can I enable reduced-footprint C library?? I have try to check 'Small C Library' in system property setting, but after compiling project, the sizeof(struct _reent) still equals to 892 bytes. Anyone help? Because I'm not familiar with struct _reent. Another question is on which condition shall I base to decide whether enable 'Thread Safe C Library' or not? Thanks in advance, David