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 Update on Monday, May 27th 2025

MSVC2015 much faster than mingw32?

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 4 Posters 897 Views
  • 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 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)?

    jsulmJ 1 Reply Last reply
    0
    • S s.frings74

      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)?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on 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
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on 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 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
          1
          • S s.frings74

            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 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

            • Login

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