Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. MSVC2015 much faster than mingw32?
Forum Updated to NodeBB v4.3 + New Features

MSVC2015 much faster than mingw32?

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 4 Posters 902 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    s.frings74
    wrote on 26 Jan 2017, 23:34 last edited by s.frings74
    #1

    I am using Qt under Linux since many years. This weak I also started using it under Windows. I first tried it with the default compiler mingw32, then added MSVC2015. I noticed that the MS compiler builds my program 10x faster than the mingw compiler. Is that normal?

    Is it also normal that the MS compiler generates a much smaller exe file in Debug mode (in my case 600kb versus 15MB)?

    J 1 Reply Last reply 27 Jan 2017, 06:20
    0
    • S s.frings74
      26 Jan 2017, 23:34

      I am using Qt under Linux since many years. This weak I also started using it under Windows. I first tried it with the default compiler mingw32, then added MSVC2015. I noticed that the MS compiler builds my program 10x faster than the mingw compiler. Is that normal?

      Is it also normal that the MS compiler generates a much smaller exe file in Debug mode (in my case 600kb versus 15MB)?

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 27 Jan 2017, 06:20 last edited by
      #2

      @s.frings74 10x faster? This is strange. GCC is not the fastest compiler but it should not be 10x slower than VC++.
      Regarding the debug build size: as far as I know Microsoft compiler does not put the debug information into the binary but in some other files (check the build directory). That's why the binaries are smaller.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      3
      • M Offline
        M Offline
        mrjj
        Lifetime Qt Champion
        wrote on 27 Jan 2017, 07:30 last edited by
        #3

        Hi
        make sure to add a build step in Projects.
        and add -j 4 or something like that to make it use more cores.
        Also VS2015 compiles in the background so that way it appears faster.

        But I agree. in the newer version of mingw , it does seems a bit slow(er)

        1 Reply Last reply
        3
        • S Offline
          S Offline
          s.frings74
          wrote on 27 Jan 2017, 19:32 last edited by
          #4

          Yupp, with option -j4 for mingw32-make.exe, the compilation is 4x faster than before. Still a bit slower than the MS compiler but i'm satisfied now.
          Thanks.

          O 1 Reply Last reply 27 Jan 2017, 21:01
          1
          • S s.frings74
            27 Jan 2017, 19:32

            Yupp, with option -j4 for mingw32-make.exe, the compilation is 4x faster than before. Still a bit slower than the MS compiler but i'm satisfied now.
            Thanks.

            O Offline
            O Offline
            Oleksandr Malyushytskyy
            wrote on 27 Jan 2017, 21:01 last edited by
            #5

            @s.frings74

            VS might use advantage of pre-compiled headers. This can make a huge difference,

            1 Reply Last reply
            2

            4/5

            27 Jan 2017, 19:32

            • Login

            • Login or register to search.
            4 out of 5
            • First post
              4/5
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved