This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: Reduce stack usage of _vfiprintf_r()
- From: Claudio Lanconelli <claudiolanconelli at eurekelettronica dot it>
- To: newlib at sourceware dot org
- Date: Thu, 11 Oct 2012 16:28:34 +0200
- Subject: Re: Reduce stack usage of _vfiprintf_r()
- References: <5076D566.5060108@eurekelettronica.it>
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