Is MSVC better than MinGW?
John Castro
Published Mar 06, 2026
Is MSVC better than MinGW?
Results: MSVC is doing the compilation job significantly faster than MinGW-w64. The DLL sizes are comparable, if optimization is set to “-O2” for MinGW-w64, with “-O3” the DLLs from MinGW-w64 are larger. Binary files compiled with MinGW-w64 are performing significantly better than those compiled with MSVC.
Is MSVC a good compiler?
The C++ product team here at Microsoft offers a great C++ experience in the Visual Studio IDE, the Visual Studio Code editor, and various other tools and services. Our goal for MSVC is to be the best compiler choice on Windows for targeting Windows, regardless of what editor or IDE you choose to use.
Is clang faster than MSVC?
The c++ code compiled by clang runs a lot faster than the same code compiled by MSVC.
Should I use GCC or MSVC?
GCC is a fine compiler, and can produce code that has pretty much the same performance, if not better, than MSVC. It is missing some low-level Windows-specific features though.
What is MSVC and MinGW?
Basically, MinGW is a port of Linux (GNU, actually) tools for Windows, which happen to include a port of GCC (the actual compiler). MSVC, on the other hand, is a Windows native tool chain and runtime for building C/C++ executables.
Is MSVC a compiler?
Microsoft Visual C++ (MSVC) is a compiler for the C, C++ and C++/CX programming languages by Microsoft. MSVC is proprietary software; it was originally a standalone product but later became a part of Visual Studio and made available in both trialware and freeware forms.
Is GCC faster than Msvc?
MinGW also compiles significantly slower than MSVC (though precompiled headers help a little). Despite all that, GCC/MinGW is an entirely reliable quality compiler, which in my opinion outperforms any to date available version of MSVC in terms of quality of generated code.
Is WSL better than Cygwin?
Cygwin delivers in that area much more effectively than WSL. In Cygwin I can run URxvt just like at home, and run all the nonsense legacy software I need to for work, just like it were actually reasonable. In WSL, I can do none of that.
Is MinGW still maintained?
MinGW can be run either on the native Microsoft Windows platform, cross-hosted on Linux (or other Unix), or “cross-native” on Cygwin….MinGW.
| Original author(s) | Colin Peters |
|---|---|
| Website | (project page, still active) mingw.osdn.io (inactive and broken; former domain of mingw.org has expired) |