[PATCH] gzip usage messages, save ~24k #2

Denis Vlasenko vda at ilport.com.ua
Tue Feb 21 08:54:16 UTC 2006


On Monday 20 February 2006 16:58, Rob Landley wrote:
> > I couldn't figure out how to fit it into Makefile system,
> > so you will need to manually do
> >
> > # cd applets
> > # sh z2
> >
> > in order to generate usage_compressed.h file there.
> >
> > "make sizes" diff:
> 
> Shouldn't be too hard to shoehorn into the makefile system.  I got bb_config.h 
> generated via sed, the principle's similar...

Cleaned up version is attached.

* Compiles with and without CONFIG_FEATURE_VERBOSE_USAGE
  (without it, usage text is not gzipped - unzipping code is large enough
  to outweigh savings)
* Integrated into Makefiles (include/usage_compressed.h generation,
  inclusion of required parts of unzip code)

diff of "make sizes" with and without CONFIG_FEATURE_VERBOSE_USAGE
is below. Shows that gunzip routines were auto-selected by Makefiles:

...
@@ -3713,6 +3761,7 @@
 000000d6 t memalign_check
 000000d6 T udhcp_get_option
 000000d8 t _rmescapes
+000000d8 t inflate_stored
 000000d9 t build_collating_symbol.4
 000000d9 t findidx.0
 000000da t re_string_elem_size_at
@@ -3979,6 +4028,7 @@
 00000133 t parse_url
 00000133 T tee_main
 00000133 T vconfig_main
+00000136 T bb_show_usage
 00000136 t findidx.0
 00000137 T _ufc_mk_keytab_r
 00000137 t calc_epsdest
@@ -4538,6 +4588,7 @@
 00000426 t new_process_module_arguments
 00000427 T patch_main
 00000429 T route_main
+0000042c t inflate_codes
 0000043e T ash_main
 00000448 T __mktime_internal
 00000451 W _IO_file_seekoff
@@ -4556,6 +4607,7 @@
 000004d0 t showfiles
 000004db T udhcp_run_script
 000004dc b ino_dev_hashtable
+000004de T huft_build
 000004ec t ext_wmatch
 000004ec T vsyslog
 000004ee t make_device
@@ -4611,6 +4663,7 @@
 000006de T __sysconf
 000006de W sysconf
 000006e4 T _dl_map_object
+000006e6 T inflate_unzip
 000006ed t parse_args
 000006fc T tftp_main
 0000070c T time_main
@@ -4664,7 +4717,6 @@
 00000f69 T mkfs_minix_main
 00000f81 T traceroute_main
 00001000 b do_pc2
-00001064 R usage_messages
 00001082 T nfsmount
 00001320 t identify
 0000139a t internal_fnwmatch
@@ -4693,6 +4745,7 @@
 000034cd T _IO_vfprintf
 000034cd T vfprintf
 00004000 b buffer.0
+0000405c r gzipped_usage
 00004ae4 r translit_to_tbl
 00005c0a T _IO_vfscanf
 0002009c B _ufc_foobar
--
vda

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gzipped_usage2.patch
Type: text/x-diff
Size: 5403 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20060221/3b4f59c0/attachment.bin 


More information about the busybox mailing list