Reduce stack usage of _vfiprintf_r()
Fri Oct 12 14:48:00 GMT 2012
Il 10/10/2012 19:40, Joel Sherrill ha scritto:
>  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.
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
This BUFSIZE is the same used by malloc()?
I already use CFLAGS_FOR_TARGET="-DSMALL_MEMORY -D__BUFSIZ__=256"
More information about the Newlib