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


On Oct 13 12:34, Federico Terraneo wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On 10/12/2012 11:22 PM, Freddie Chopin wrote:
> > 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!!
> 
> Hope the patch gets accepted. At least imho it's the best compromise.

I just applied an (for this case) equivalent patch.


Hope that helps,
Corinna

-- 
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat


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