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


-----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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iQEcBAEBAgAGBQJQeUO9AAoJECkLFtN5Xr9fX0cH+wRCL1bz4QYYTLoG3o9HIqI3
/2VzNbi9ZsEqKIG08aDjgu7x+VRk3BuyFygDVOWb8bCrxONbj4U+R9xvC7RtENdp
k3vQmAbAy9kYvfQkTdc5U0+xV9/DULWkjpi/D1QNIqwNiB4RjSGozjco8ItebFGe
AQoXKKR0IrOAg2LNAgSNfejsGVXcACxHCC7d0tAtpbDJkClaqxd67oCnyZ+/lqzp
vzPlb/8jMSN1XKjVyNUkshFqLiF1f9QAFs0JY3bGMqKs3f+5aqjfeykHGRetkEDT
ugnMz1JOxcFeaFTs3XT6Usg03sirO83P7zVuTvhsCUZrSK1PMh/HrNK7IHCHIeo=
=FVzi
-----END PGP SIGNATURE-----


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