Results 1 to 3 of 3

Thread: MingW x Visual Studio compiler

  1. #1
    Join Date
    Aug 2008
    Location
    Algarve, Portugal
    Posts
    288
    Thanks
    23
    Thanked 32 Times in 28 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Question MingW x Visual Studio compiler

    Which is the best compiler mingw 32 or visual studio compiler ?
    What are the differences in the exe files, are they smaler, slower, faster ?

  2. #2
    Join Date
    May 2008
    Location
    Rijeka, Croatia
    Posts
    85
    Thanks
    10
    Thanked 6 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: MingW x Visual Studio compiler

    First diference i noticed is size of build
    msvc: 2.1 GB
    gcc: 5.5 GB
    for example - lib files:
    Qt Code:
    1. Name Extension Size Attributes
    2. QtGui.lib lib 34,541,666 ---A----
    3. QtGui.prl prl 1,122 ---A----
    4. QtGuid.lib lib 65,311,050 ---A----
    5. QtGuid.prl prl 1,116 ---A----
    6.  
    7. Name Extension Size Attributes
    8. libQtGui.a a 18,215,764 ---A----
    9. libQtGui4.a a 7,926,574 ---A----
    10. libQtGuid.a a 469,069,964 ---A----
    11. libQtGuid4.a a 8,841,350 ---A----
    To copy to clipboard, switch view to plain text mode 

    this is how i configured build:
    Qt Code:
    1. configure -platform win32-msvc2005 -static -debug-and-release -fast -qt-sql-sqlite -no-qt3support -vcproj
    2. configure -platform win32-g++ -static -debug-and-release -fast -qt-sql-sqlite -no-qt3support
    To copy to clipboard, switch view to plain text mode 
    and commented demos and examples in projects.pro

    i do not know why i such a huge diference beetween build size.

    one more thing, it's seems that gcc is slower (judgeing on qt build time).

  3. The following user says thank you to stefan for this useful post:

    john_god (19th September 2008)

  4. #3
    Join Date
    Jul 2006
    Location
    Poprad/Prague
    Posts
    33
    Thanks
    4
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: MingW x Visual Studio compiler

    another thing is that AFAIK mingw can not use MMX, SSE(2) and other CPU optimizations, so the libraries are probably slower a little bit...

Similar Threads

  1. Qt 4.4.1 Compile Error with MS Visual C++ 2008 Express SP1
    By BrainB0ne in forum Installation and Deployment
    Replies: 3
    Last Post: 19th August 2008, 15:49
  2. qtgui4.dll error in visual c++ 2005
    By Comptrol in forum Installation and Deployment
    Replies: 33
    Last Post: 19th June 2008, 07:18
  3. Qt configure with msvc.net
    By jivanr in forum Installation and Deployment
    Replies: 1
    Last Post: 11th June 2007, 08:17
  4. Replies: 7
    Last Post: 24th March 2007, 13:53
  5. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 13:15

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.