libbb: introduce and use strcpy_and_process_escape_sequences
[oweals/busybox.git] / docs / keep_data_small.txt
index 2ba24e4a1139c3ec8ddfbe152f88e94726fbb26d..01c0d3c7b00d30caba0948430c23f3a6cac2f508 100644 (file)
@@ -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.