This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [PATCH] Support %m in printf functions
- From: "Daniel O'Connor" <doconnor at gsoft dot com dot au>
- To: Richard Earnshaw <rearnsha at arm dot com>
- Cc: "Yaakov (Cygwin/X)" <yselkowitz at users dot sourceforge dot net>, newlib <newlib at sources dot redhat dot com>
- Date: Tue, 3 Jan 2012 21:14:17 +1030
- Subject: Re: [PATCH] Support %m in printf functions
- References: <1325440746.6724.8.camel@YAAKOV04> <4F02DA80.9040603@arm.com>
On 03/01/2012, at 21:07, Richard Earnshaw wrote:
> Printf is already very bloated. On bare metal this adds yet more
> overhead for something that's very unlikely to be used.
>
> I think there should be a way of building printf with all GNU extensions
> disabled.
avr-libc lets you specify which of version of the scanf/printf functions you want (minimal, float, "normal").
http://www.nongnu.org/avr-libc/user-manual/group__avr__stdio.html#gaa3b98c0d17b35642c0f3e4649092b9f1
Not sure how applicable/portable it is though.
--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
-- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C