EXE大小在Delphi XE2中太大了 [英] EXE Size is too big in Delphi XE2

查看:881
本文介绍了EXE大小在Delphi XE2中太大了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Delphi XE2中创建了一个简单的项目,只有3或4个delphi格式,大小只有8或9 KB。但是如果我看到exe大小,它的12MB。我不知道怎么样可能原因是什么?

解决方案

您正在使用默认的Debug构建配置,其中包含exe中的调试信息。 / p>

您通常会将版本配置更改为发布,以便生成较小的exe进行分发,同时以失去在Delphi IDE中调试的能力为代价(一步一步)。



看看如何更改Delphi Build配置



使用Delphi XE 3以简单的形式,Debug exe为10,995Kb,而release exe为只有 2,326Kb长。你可能认为后者仍然很大,但这又是一个问题:




I have created a simple project in Delphi XE2 with only 3 or 4 delphi forms which are only 8 or 9 KB in size. But If I see the exe size, its 12MB. I don't know how? What could be the reasons?

解决方案

You're using the default Debug build configuration, which includes debug information in the exe.

You normally change the build configuration to release in order to produce a smaller exe for distribution, at the expense to lose the ability to debug it within the Delphi IDE (step by step).

Take a look at How to change Delphi Build configuration?

Using Delphi XE 3 with a simple form, the Debug exe is 10,995Kb whereas the Release exe is only 2,326Kb long. You may argue the latter is still big, but that's another question:

这篇关于EXE大小在Delphi XE2中太大了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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