How to decrease the size of generated binaries?

后端 未结 7 1273
谎友^
谎友^ 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:37

    Assuming that another tool is also allowed ;-)

    Then consider UPX: the Ultimate Packer for Binaries which uses runtime decompression.

    Happy coding.

提交回复
热议问题