

I tend to do this and mixed with Wine for quick test iterations is a really nice way to go to avoid Microsoft's slow cancerous consumer growth inside Windows.Ĭlang is a parasite. The only annoyance is that GDB drags in sodding python which is extremely heavy for such a niche usage but this is a growing flaw with package managers (and open-source) in general these days.Īnother option which might be preferable is install Linux or FreeBSD and use wine's winegcc compiler to cross compile. Then zip up the mingw64 folder and delete the rest of the crap. So what I typically do is install Msys2, including all that messy POSIX layer nonsense, install the packages: However it is 32-bit only which is possibly an issue for a few projects. The only one I found that was a little sane was Embarcadero's (clang based): Intel's compiler also relies on Microsoft's linker too which is annoying. Pretty much all Windows compilers these days use stupid online downloaders, eliminating much of the determinism and simplicity you might want (Msys2, Cygwin, MSVC++). Ugh.Īs for MinGW-w64, It seems ( correct me if I'm wrong), that Windows' API calls (say, rand_s()) are not possible.Ĭlang on Windows seems to rely on Visual Studio's linker, kind of like it uses GCC's ld on Linux, and there's little to no information about it. This makes it seem like ( correct me if I'm wrong), but C11/17 support for MSVC binaries is limited to the latest Windows 10. C11 and C17 support requires Windows SDK 8.0 (version 2104) or later. Windows SDK releases correspond with Windows OS releases. Their C11/17 "support" comes in 2021, and is still not fully released yet.Īlso, as the post hyperlinked there also mentions : I used to rely on Visual Studio's compiler, but they really only care for C++ and used to barely even support most of C99.

Those more experienced with developing modern C for/in Windows than me can probably answer this trivially, but I've been searching for hours to little end. It'd be nice if the compiler has some static-linking features too. I don't really need an IDE, so if a compiler does not come with one, it doesn't matter if it does, that's alright.

Reasonably straightforward to install and set up. Good at generating reasonably efficient (memory, CPU, binary size) code.Īllows access to Microsoft's POSIX counterparts. Say, like supporting and the like.Īble to target ideally >= XP but >= 7 is crucial. Modern : C17, and not just the " required features like MSVC. I'm looking for a C compiler or compiler suite that is :
