dll size (debug and release)

五迷三道 提交于 2019-12-05 15:59:19

It won't cause problems, its probably that the compiler is 'inlining' more items in the release build and creating larger code. It all depends on the code itself.

Nothing to worry about.

EDIT: If you are really worried about and not worried about speed you can turn on optimize for size. Or turn off auto inlining and see what difference you get.

EDIT: More info, you can use dumpbin /headers to see where the dll gets larger

How much bigger is your Release DLL than your Debug DLL?

Your Debug DLLs might seem small is you are generating PDB symbol files (so the debug symbol is not actually in the DLL file). Or if you are inadvertently compiling debug symbols into your Release DLL.

This can be caused by performance optimizations like loop unrolling - if it's significantly different, check your Release linker settings to make sure that you're not statically compiling anything in.

The performance can be influenced if your application perform tasks of high performance. A release version can even be larger than a debug version, if marked options to generate code with information on Debug included. But this also depends on the compiler you are using.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!