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()


Hi!

How about the attached patch? I've tested and everything is fine. It's of course a modified version of patch from Corina, but with removed condition of size optimization.

Now each entry to _vfprintf_r() costs only about 190 bytes and __sbprintf() allocates about 1150 (on ARM Cortex-M3).

4\/3!!

Attachment: 0001-Prevent-__sbprintf-from-being-inlined.patch
Description: Text document


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