Results 1 to 4 of 4

Thread: A program compiled with minGW is slower than other compiled with MSVC?

  1. #1
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default A program compiled with minGW is slower than other compiled with MSVC?

    It is a total ignorance question.
    MSVC and mingw produce a similar exe file? (regarding the speed of the program)
    And (I have not try it ) ... is MSVC faster than QT+mingw when compiling ?
    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: A program compiled with minGW is slower than other compiled with MSVC?

    Quote Originally Posted by tonnot View Post
    It is a total ignorance question.
    This is not an ignorant question, at least to me.

    MSVC and mingw produce a similar exe file?
    No, they generate different code.

    And (I have not try it ) ... is MSVC faster than QT+mingw when compiling ?
    The speed of compiling? Or the speed of the compiled program?

    Both can different from compiler to compiler.

  3. #3
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: A program compiled with minGW is slower than other compiled with MSVC?

    Thanks tbscope.
    I ask for both questions the speed of the compiling and the speed of the compiled program.

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,734
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: A program compiled with minGW is slower than other compiled with MSVC?

    This is my anecdotal evidence... YMMV

    On Windows I found that the MSVC compiler from the Windows SDK was slower than the MingW GCC in the Qt SDK building the same source (using the QMake default options). The MSVC compiler always seemed to produce smaller executables (presumably because it assumes the presence of more on the machine).

    For my desktop application runtime performance differences were not noticeable. Unless you are doing some constant and mathematically intense calculation I doubt that the performance differences in generated code are likely to be significant.

Similar Threads

  1. Replies: 4
    Last Post: 11th June 2010, 19:27
  2. 10 GB of compiled QT
    By QPlace in forum Installation and Deployment
    Replies: 13
    Last Post: 29th April 2009, 08:05
  3. compiled version of Qt 4.5 for msvc 2008
    By OniLink in forum Installation and Deployment
    Replies: 6
    Last Post: 26th March 2009, 08:31
  4. compiled program on the web
    By Noxxik in forum Installation and Deployment
    Replies: 4
    Last Post: 25th March 2009, 08:33
  5. program not getting compiled...please help
    By sh123 in forum Qt Programming
    Replies: 8
    Last Post: 27th December 2008, 08:11

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.