Search results
MSVC code generation quality is almost on par with GCC and Clang. It doesn't quite support C99 and probably never will. The toolchain is not nearly as powerful or flexible as Mingw-w64. For instance, import libs are still mandatory (for outdated historical reasons), unlike Mingw-w64 where they're completely optional. 16.
Jul 27, 2024 · I have personally always been using MSVC on Windows and would always pick this as a compiler. The Visual Studio debugger is a lot better than the one built in to Qt Creator (debugging in Qt Creator can be terribly slow on Windows taking several minutes for just a single step). vc_redist can be a little bit annoying.
7. Let's put like this: We are going to create a library that needs to be cross platform and we choose GCC as compiler, it works awesomely on Linux and we need to compile it on Windows and we have the MinGW to do the work. MinGW tries to implement a native way to compile C++ on Windows but it doesn't support some features like mutex and threads.
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.
Those particular functions just don't exist, despite beeing part of the STL. mingw-w64 doesn't have that problem. Some people say newer versions of mingw's gcc fix that but I don't think that is true. The exception models aren't a problem per se, just that support and implementation seem to vary, especially between mingw and mingw-w64.
all the modern windows toolchains use msvc standard C libraries, even the mingw ones. That's why msys2 offers both ucrt and msvcrt variants of mingw-w64-gcc and mingw-w64-clang. They do use their own C++ standard library implementations though (not sure about the Clang that ships with Visual Studio though)
People also ask
Is MSVC better than MinGW-w64?
Should I use GCC (MinGW) or MSYS2?
What's the difference between MinGW-w64 and GNU libc?
Is MSVC a good compiler?
Is GCC/MinGW a good compiler?
Does MinGW-w64 support thread?
Nov 5, 2024 · This means that the msvc target will effectively only work when the host system is Windows (and the host system needs the SDK/MSVC files installed separately from Zig). MinGW (which is what the gnu ABI means when targeting Windows) is an effort to provide those same headers/libraries (in terms of ABI-compatibility) that can actually be ...