Enviado para você por Cabeloh através do Google Reader:
Question: Why do empty XE2 VCL projects have an EXE size of 7 MB compared to XE where the same project has only 0.9 MB?
Answer: You are compiling the project with the Debug configuration. And XE2 changed the default options for the Debug configuration to include the Debug Information into the EXE file. You can turn that option off in the project options under "Linker". Or you can move them to an external *.tds file (the option under "Debug Information"). The debugger doesn't need those Debug information because it gets the required information directly from the DCU and DCP files as it did in XE and older versions. I don't know the reason why Embarcadero turned the option to include the Debug Information into the EXE on. Maybe the OSX debugger needs it (I don't use that one). Or they wanted to allow us to debug the EXE in the IDE where the DCU und DCP files aren't accessible (TDS information isn't that good as the DCU's debug information)
But even with that change the EXE file is 1.5 MB. So where do the other 600 KB come from? Almost 300 KB come from the new main icon resource that contains the icon in all Windows 7 required sizes. Another 200 KB come from the new Vcl.Themes unit that is hard linked from the Controls unit, so you can't avoid it. The remaining 100 KB can be seen as the usual annual increase by changes in the RTL and VCL.
Coisas que você pode fazer a partir daqui:
- Inscrever-se no Andy's Blog and Tools usando o Google Reader
- Começar a usar o Google Reader para se manter facilmente atualizado sobre todos os seus sites favoritos
Nenhum comentário:
Postar um comentário