libargp support? [was: Re: 100KiB limit is too low]
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Fri Jul 3 10:06:49 UTC 2009
On Fri, Jul 03, 2009 at 11:13:53AM +0200, Salvatore CRO' wrote:
>Just a small tip... figures on the left in patches file
>listing refers to .c bytesize while those between () on
>the right to .o bytesize.
>
>[PATCH] libc: Added argp support :
>==================================
>_Descr_ : Argp source files
>_Files_ :
>1316 libc/argp/argp-ba.c (732)
>1254 libc/argp/argp-eexst.c (735)
>11685 libc/argp/argp-fmtstream.c (3328)
>1708 libc/argp/argp-fs-xinl.c (1648)
>55681 libc/argp/argp-help.c (15384)
>29284 libc/argp/argp-parse.c (6328)
>1479 libc/argp/argp-pvh.c (734)
>1287 libc/argp/argp-pv.c (728)
>1242 libc/argp/argp-xinl.c (1068)
>297 Makefile
>721 Makefile.in
so >> 20k (!)
>[PATCH] libc: getopt adj for argp :
>===================================
>_Descr_ : Adjustment needed by argp :
> - Added long_r/long_only_r support to getopt.c .
> - getopt_int.h moved to proper common header path.
>_Files_ :
>34165 libc/unistd/getopt.c (3904 )
Given that argp is in no standard and that this abovementioned impl
is just enormous in size, i would prefer if you would rather use
argp-standalone¹). For comparison:
$ size libc/unistd/getopt.os
text data bss dec hex filename
2529 12 28 2569 a09 libc/unistd/getopt.os
¹)
http://www.lysator.liu.se/~nisse/misc/
More information about the uClibc
mailing list