Search results
Some software only supports MSVC on Windows (e.g. CPython, including native modules) so you may have to use it. The only advantage is that you get a statically-linked CRT — versus linking against an old msvcrt.dll per Mingw-w64 — though historically Microsoft's UCRT has been kind of buggy, and those bugs then get baked into your binaries.
We have the MinGW-W64 that is a fork of MinGW that supports those features and I was wondering, which one to use? Knowing that GCC is one of the most used C++ compilers. Or it's better to use the MSVC (VC++) on Windows and GCC on Linux and use CMake to handle with the independent compiler?
Apr 16, 2017 · I started to experiment with a MinGW 64 bit self-compiled Qt version, which was compared to the MinGW 32bit version bulky and slow. Since there was no direct need for 64 bit I switched simply back to 32 bit.
MingW is a windows port of GCC. MS-cl, Clang-cl, Clang++, g++, gpp. cl.exe is the name of the executable that actually does the compiling (and linking) for MSVC, clang-cl is just the LLVM equivalent. g++ is GCC's C++ compiler executable.
Clang's big advantage is that it's compatible with msvc's ecosystem, so it's pretty much a drop in replacement most of the time, and it has generally better codegen than msvc and far better diagnostics.
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.
People also ask
Is MSVC better than MinGW-w64?
What's the difference between MinGW-w64 & MinGW-builds?
What is the difference between LLVM and MinGW?
Does MinGW-w64 support thread?
Is MinGW 64 bit better than 32 bit GNU-C++?
Is GCC/MinGW a good compiler?
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.