Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I find a standards-compliant C compiler for Windows? [closed]

Tags:

c

windows

I'm looking for a good, free C compiler for Windows. Where can I find it?

like image 276
Alex S Avatar asked May 05 '09 00:05

Alex S


People also ask

Is there a built in C compiler in Windows?

Unfortunately, there is no in-built compiler.

What C compiler should I use on Windows?

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.

Where can I download C compiler for Windows?

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.

Is there an official C compiler?

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.


2 Answers

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

like image 116
Unknown Avatar answered Sep 27 '22 22:09

Unknown


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.

like image 45
MBCook Avatar answered Sep 27 '22 20:09

MBCook