[PATCH] new expand / unexpand applets
Tito
farmatito at tiscali.it
Sun Aug 12 22:34:43 UTC 2007
Hi to all,
this patch adds 2 new applets to coreutils: expand and unexpand
They are turned off by default and can be turned on independently.
There are also some tests added to the testsuite to ensure
that they work like their GNU counterparts.
The applets are tested but more testing by the community would not be bad.
Hints, improvements, optimizations and critics are wellcome.
bloat-o-meter says:
1) busybox defconfig + expand (with long opts)
function old new delta
expand_main - 456 +456
.rodata 120397 120525 +128
packed_usage 22558 22660 +102
xputchar - 25 +25
static.expand_longopts - 18 +18
applets 3108 3120 +12
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 3/0 up/down: 741/0) Total: 741 bytes
2) busybox defconfig + unexpand (with long opts)
function old new delta
expand_main - 554 +554
.rodata 120397 120557 +160
packed_usage 22558 22652 +94
static.unexpand_longopts - 27 +27
xputchar - 25 +25
applets 3108 3120 +12
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 3/0 up/down: 872/0) Total: 872 bytes
3) busybox defconfig + expand (with long opts) + unexpand (with long opts)
function old new delta
expand_main - 772 +772
.rodata 120397 120621 +224
packed_usage 22558 22717 +159
static.unexpand_longopts - 27 +27
xputchar - 25 +25
applets 3108 3132 +24
static.expand_longopts - 18 +18
------------------------------------------------------------------------------
(add/remove: 4/0 grow/shrink: 3/0 up/down: 1249/0) Total: 1249 bytes
3) busybox defconfig + expand (without long opts) + unexpand (without long opts)
function old new delta
expand_main - 752 +752
.rodata 120397 120589 +192
packed_usage 22558 22717 +159
xputchar - 25 +25
applets 3108 3132 +24
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 3/0 up/down: 1152/0) Total: 1152 bytes
Ciao,
Tito
-------------- next part --------------
A non-text attachment was scrubbed...
Name: expand_unexpand.patch
Type: text/x-diff
Size: 12501 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20070813/3d74aae9/attachment-0002.bin
More information about the busybox
mailing list