diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-06-02 13:28:17 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-06-02 13:28:17 +0200 |
commit | abb154ba02f9a9a98465cb1f816f974cca536392 (patch) | |
tree | 3cdce05089c40fc291c8d35aa10f366e5583c479 /docs | |
parent | ea8b252cb30c4b4463df43a5342af95931920f09 (diff) | |
download | busybox-w32-abb154ba02f9a9a98465cb1f816f974cca536392.tar.gz busybox-w32-abb154ba02f9a9a98465cb1f816f974cca536392.tar.bz2 busybox-w32-abb154ba02f9a9a98465cb1f816f974cca536392.zip |
document how to find non-shared string dups
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/keep_data_small.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/keep_data_small.txt b/docs/keep_data_small.txt index 079bac3a6..01c0d3c7b 100644 --- a/docs/keep_data_small.txt +++ b/docs/keep_data_small.txt | |||
@@ -145,6 +145,11 @@ one of above methods is not worth the resulting code obfuscation. | |||
145 | If you have less than ~300 bytes of global data - don't bother. | 145 | If you have less than ~300 bytes of global data - don't bother. |
146 | 146 | ||
147 | 147 | ||
148 | Finding non-shared duplicated strings | ||
149 | |||
150 | strings busybox | sort | uniq -c | sort -nr | ||
151 | |||
152 | |||
148 | gcc's data alignment problem | 153 | gcc's data alignment problem |
149 | 154 | ||
150 | The following attribute added in vi.c: | 155 | The following attribute added in vi.c: |