[Qt-interest] win32-g++ compiled Qt app much bigger than win32-msvc compiled one?

James Yan jyan972 at gmail.com
Tue Mar 31 11:15:12 CEST 2009


anyway, i would like to say : UPX rocks! :D

Visual C++ Express 2008 (win32-msvc) : 3,976 kb
Qt Creator (win32-g++)                         : 10,305 kb
Qt Creator (win32-g++ / upx)                 : 3,700 kb

On Mon, Mar 30, 2009 at 12:51 PM, Malyushytsky, Alex <alex at wai.com> wrote:

> Francisco,
>
> As far as I know QT does not support anything, but gcc 3.4.2 on Windows
> yet.
> So even it might have better optimizations you have no way to use it.
>
> About performance. I would call an Intel compiler a king of performance on
> Windows. Even though I have negative experience with Intel support and
> reliability these days, we use Intel compiler in our office.
> Due to the nature of our product we need the best performance possible and
> found that intel compiler provides the best one.
>
> If you want to compile QT with it, you might have a problem. Qt 4.5 I
> believe has issues with using Intel CC 10.
> But we don't have problems linking code compiled with Intel and msvc
> compilers together, so there is a work around, if you can split your QT
> based gui and modules you need to be compiled with Intel compiler.
>
> So my answer was related to usage gcc 3.4.2 over msvc, which is correct
> according to my experience.
>
> If you have better answer, you are welcome to correct me.
> But please respond to the mailing list. This may give others, not only me
>  an opportunity to participate or learn from discussion.
>
> Alex
>
>
> -----Original Message-----
> From: Francisco Ares [mailto:frares at gmail.com]
> Sent: Sunday, March 29, 2009 10:57 PM
> To: Malyushytsky, Alex
> Subject: Re: [Qt-interest] win32-g++ compiled Qt app much bigger than
> win32-msvc compiled one?
>
> 2009/3/28 Malyushytsky, Alex <alex at wai.com>:
> > I would say no matter what you do msvc compiler has the better
> optimization.
> >
> > I am not sure, if you can improve anything in your case,
> >
> > but in general you should get smaller files and/or faster application
> using
> > either msvc compiler on Windows.
> >
> >
> >
> > Alex
> >
> >
> >
>
> AFAIK that's the opposite, gcc has better optimizations, specially
> gcc4 - recent versions, of course, that are able to use the specific
> instructions from Intel's dual core processors - also considering you
> are able to use the mingw port.
>
> ... and there is always UPX
>
> http://upx.sourceforge.net/
>
>
> --
> "If you have an apple and I have an apple and we exchange apples then
> you and I will still each have one apple. But if you have an idea and
> I have one idea and we exchange these ideas, then each of us will have
> two ideas." - George Bernard Shaw
>
>
>
> ---------------------------------------------------------------------------------------------------
> Weidlinger Associates, Inc. made the following annotations.
>
> "This message and any attachments are solely for the intended recipient and
> may contain confidential or privileged information. If you are not the
> intended recipient, any disclosure, copying, use, or distribution of the
> information included in this message and any attachments is prohibited. If
> you have received this communication in error, please notify us by reply
> e-mail and immediately and permanently delete this message and any
> attachments. Thank you."
>
> "Please consider our environment before printing this email."
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090331/e0b73998/attachment.html 


More information about the Qt-interest-old mailing list