How to decrease the size of generated binaries?

后端 未结 7 1258
谎友^
谎友^ 2021-02-01 05:53

I know that there is an option \"-Os\" to \"Optimize for size\", but it has little affect, or even increase the size on some occasion :(

strip (or \"-s\" option) remov

相关标签:
7条回答
  • 2021-02-01 06:39

    If you want to squeeze every last drop of space out of your binaries, you'll probably have to learn assembly. For a very interesting (and entertaining) intro, see this link:

    A Whirlwind Tutorial on Creating Really Teensy ELF Executables for Linux

    0 讨论(0)
提交回复
热议问题