Reduce stack usage of _vfiprintf_r()
Corinna Vinschen
vinschen@redhat.com
Wed Oct 17 18:36:00 GMT 2012
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
More information about the Newlib
mailing list