Current Minimal Binary Size
Wilfred Smith
wilfredsmith at fb.com
Fri Sep 13 22:52:36 AEST 2019
These values may be of use to someone else. I’ve been putting energy into reducing code size lately. The following are all with -Os enabled.
Smallest .SO (one function with no statements in the body) - 8.2K
Smallest executable (main with only a return statement) - 12K
Smallest executable with a printf and return - 14K
Smallest executable with a std::cout and return - 103K
For comparison:
Smallest executable with a printf and return on x86-64 - 8.2K
Smallest executable with a std::cout and return on x86-64 - 42K
More information about the openbmc
mailing list