[Qt-interest] win32-g++ compiled Qt app much bigger than win32-msvc compiled one?
Sven Grunewaldt
strayer at olle-orks.org
Tue Mar 31 13:39:53 CEST 2009
You have to remember that UPX will extract the whole thing back into the
system ram, so the compressed exe will use _at least_ 10,305 MB of ram.
I played with this when I programmed with PyQt and concluded that I
don't want to fill the Ram with this stuff in the years of 250GB to
1.5TB HDDs.
Also I still suggest to try "strip *.exe" as this can reduce the file
size a lot.
Regards,
Sven Grunewaldt
Am 31.03.2009 11:15, schrieb James Yan:
> 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
> <mailto: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
> <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 <mailto: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 <mailto:Qt-interest at trolltech.com>
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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/6225f999/attachment.html
More information about the Qt-interest-old
mailing list