One big executable or many small DLL's?

后端 未结 4 748
醉梦人生
醉梦人生 2020-12-28 17:37

Over the years my application has grown from 1MB to 25MB and I expect it to grow further to 40, 50 MB. I don\'t use DLL\'s, but put everything in this one big executable.

4条回答
  •  佛祖请我去吃肉
    2020-12-28 17:50

    A single executable has a huge positive impact on maintainability. It is easier to debug, deploy (size issues aside) and diagnose in the field. As you point out, it completely sidesteps DLL hell.

    The most straightforward solution to your problem is to have two compilation modes, one that builds a single exe for production and one that builds lots of little DLLs for development.

提交回复
热议问题