Reduce stack usage of _vfiprintf_r()

Claudio Lanconelli claudiolanconelli@eurekelettronica.it
Fri Oct 12 14:48:00 GMT 2012


Il 10/10/2012 19:40, Joel Sherrill ha scritto:
>
> [1] Disclaimer. I didn't review the patch in detail. I am
> commenting more on how picking different top level
> design rules and goals can influence the appropriateness
> of a potential solution.

Hi,
I use newlib for ARM Cortex-M3.
I agree with Joel, a malloc()/free() call for each printf() is not 
acceptable for me, this would raise the risk of memory fragmentation.

Just my two cents.

Is it possible to change the BUFSIZE on the configure command line for 
newlib?

This BUFSIZE is the same used by malloc()?
I already use CFLAGS_FOR_TARGET="-DSMALL_MEMORY -D__BUFSIZ__=256"

Regards,
Claudio Lanconelli






More information about the Newlib mailing list