How to decrease the size of generated binaries?

后端 未结 7 1401
谎友^
谎友^ 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

提交回复
热议问题