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]

[PATCH 2/2] getopt.c: use fputs()/fputc() instead of fprintf() to, save code space


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.

Regards,
FCh

Attachment: 0002-getopt.c-use-fputs-fputc-instead-of-fprintf-to-save-.patch
Description: Text document


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