[PATCH 2/2] getopt.c: use fputs()/fputc() instead of fprintf() to, save code space
Sat Nov 9 03:24:00 GMT 2013
On 11/08/2013 02:41 PM, Freddie Chopin wrote:
> This is another approach aiming to reduce code and RAM usage of getopt().
> Using fputs()/fputc() makes the function about 200 bytes bigger than when
> using f[i]printf() (on ARMv7-M, Cortex-M3), but now getopt() and family have
> zero dependency on heavy-weight formatting functions.
I reviewed the code changes, and they look good.
I am curious: what were your the overall savings?
More information about the Newlib