This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Reduce stack usage of _vfiprintf_r()



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





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]