[Qt-interest] Huge object files with Visual Studio Express 2008
Constantin Makshin
dinosaur-rus at users.sourceforge.net
Tue May 12 21:07:33 CEST 2009
It's OK because release MSVC builds of Qt use link-time code generation,
which results in larger object files but better code optimization
(compiler puts some intermediate code into object files and final
compilation is done during the linking stage, and since the linker can
treat all these object files as a one huge piece of code, it can optimize
it independently of actual data/function locations).
On Tue, 12 May 2009 21:58:30 +0400, Bernd Brandstetter
<bbrand at kabelmail.de> wrote:
> Hi,
>
> sorry for being a bit off-topic.
>
> I just switched from Visual Studio 6 to Visual Studio 2008 Express and
> built Qt-4.5.1 with it. I was a bit perplexed when I noticed that the
> object files in the release build were significantly larger (some up to
> 10
> times) compared to those of the debug build. For instance, all WebKit
> objects occupied ~800 MB for the debug and ~2.3 GB for the release build.
>
> Is this normal? With gcc and Visual Studio 6 it is rather the opposite -
> object files compiled with debug information are usually much larger.
>
> Regards,
> Bernd
--
Constantin "Dinosaur" Makshin
More information about the Qt-interest-old
mailing list