X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=docs%2Fkeep_data_small.txt;h=01c0d3c7b00d30caba0948430c23f3a6cac2f508;hb=53600591311a129717abd2e3bcaa302622a6ce67;hp=2ba24e4a1139c3ec8ddfbe152f88e94726fbb26d;hpb=a7bb3c1396056248a71ea188f217de3f4876947e;p=oweals%2Fbusybox.git diff --git a/docs/keep_data_small.txt b/docs/keep_data_small.txt index 2ba24e4a1..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. If you have less than ~300 bytes of global data - don't bother. + Finding non-shared duplicated strings + +strings busybox | sort | uniq -c | sort -nr + + gcc's data alignment problem The following attribute added in vi.c: @@ -245,3 +250,7 @@ subCommand - 841 +841 loss receive - 834 +834 loss 855 bytes saved in total. + +scripts/mkdiff_obj_bloat may be useful to automate this process: run +"scripts/mkdiff_obj_bloat NORMALLY_BUILT_TREE FORCED_NOINLINE_TREE" +and select modules which shrank.