I'm looking for a good, free C compiler for Windows. Where can I find it?
Unfortunately, there is no in-built compiler.
The compiler that we recommend is the GNU Compiler collection or GCC. This is a widely used cross-platform compiler toolsuite that has libraries and compilers for C, C++, Fortran, Java, and more.
Go to http://www.codeblocks.org/downloads and click Binary Release. Choose the installer with GCC Compiler, e.g., codeblocks-17.12mingw-setup.exe which includes MinGW's GNU GCC compiler download and GNU GDB debugger with Code::Blocks source files.
No, there is no compiler provided by the C standard and thus no way to install it. You have to use a third-party compiler. The most common for Linux and macOS are called GCC (GNU Compiler Collection) and Clang.
Tiny C Compiler
http://bellard.org/tcc/
Its about 200kb. Compiles 9x faster than GCC. No install, just unzip and go.
It doesn't optimize, but it should be fine for learning K&R
There are plenty. Borland C++ Builder, GCC (on Windows, often used in Cygwin), DJGPP, Visual C++ Express, and LCC-Win32.
I've used GCC (through Linux and Cygwin). I used DJGPP years ago (it was/is a fork of GCC, don't know how close it has stayed) which worked very well. No experience with the rest, really.
Edit: and MingGW, which was already mentioned and may be your best bet if you don't want Cygwin.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With