diff options
author | Rob Landley | 2005-08-13 01:10:27 +0000 |
---|---|---|
committer | Rob Landley | 2005-08-13 01:10:27 +0000 |
commit | be3dae145f71b583f2c975d8dcdc10d9dad2268a (patch) | |
tree | 4bcd50be61a1945e41eabd59d645d398fc038522 /busybox/docs/busybox.net/FAQ.html | |
parent | 6022fc8723c4bfaf055011db33f69565fa0c82b1 (diff) | |
download | busybox-be3dae145f71b583f2c975d8dcdc10d9dad2268a.zip busybox-be3dae145f71b583f2c975d8dcdc10d9dad2268a.tar.gz |
Makefile related backports:
10945, 10946 Make compile much, much faster.
10923 big makefile change. Nervous.
10946, 10991, 10998, 11003 small makefile fixes.
Diffstat (limited to 'busybox/docs/busybox.net/FAQ.html')
-rw-r--r-- | busybox/docs/busybox.net/FAQ.html | 87 |
1 files changed, 26 insertions, 61 deletions
diff --git a/busybox/docs/busybox.net/FAQ.html b/busybox/docs/busybox.net/FAQ.html index a9324ae..8de06e6 100644 --- a/busybox/docs/busybox.net/FAQ.html +++ b/busybox/docs/busybox.net/FAQ.html @@ -254,68 +254,33 @@ have additions to this FAQ document, we would love to add them, trust PayPal... <hr /> +<p> +<h2><a name="optimize">I want to make busybox even smaller, how do I go about it?</a></h2> +<p> + To conserve bytes it's good to know where they're being used, and the + size of the final executable isn't always a reliable indicator of + the size of the components (since various structures are rounded up, + so a small change may not even be visible by itself, but many small + savings add up). +</p> +<p> + To examine a busybox binary with an eye to saving bytes, build an + optimized debug version and run the "nm" command against it, like so: +</p> +<p> + make clean && make STRIPCMD=/bin/true && nm --size-sort busybox +</p> +<p> + This gives a list of symbols and the amount of space allocated for + each one, sorted by size. (Note: do not enable CONFIG_DEBUG for this, + as that disables compiler optimization which is great for running gdb + but misleading when trying to figure out how much space each component + is really using under normal circumstances.) +</p> +<hr /> + + -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> <br> <br> <br> |