dll大小(调试和释放) [英] dll size (debug and release)

查看:131
本文介绍了dll大小(调试和释放)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在其他讨论中阅读过,与Debug dll相比,Release dll的大小减小了。但是为什么我所做的dll的大小是相反的:发布dll比Debug dll大。是否会导致问题?

I have read in other discussions that Release dlls have reduced size compared to Debug dlls. But why is it that the size of the dll I have made is the other way around: the Release dll is bigger than the Debug dll. Will it cause problems?

推荐答案

它不会引起问题,它可能是编译器内联更多的项目发布构建和创建更大的代码。这一切都取决于代码本身。

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.

没有什么可担心的。

编辑:
如果你真的很担心,不用担心速度,你可以开始优化大小。或者关闭自动内联,看看你有什么区别。

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.

编辑:
更多信息,你可以使用 dumpbin / headers 以查看dll变得更大的

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

这篇关于dll大小(调试和释放)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆