tags:

views:

1061

answers:

10

I'm looking for a good, free C compiler for Windows so I can make some progress on K&R on my 13 hour flight tomorrow. Any suggestions?

A: 

Update: get an iso image for Linux and boot it during your flight? Its free its reliable and it is not going to take you hours of screwing around with.

ojblass
for a flight tomorrow? That's a metric buttload of work there.
mmr
What units do you measure metric buttloads in?
ojblass
Well, certainly not in imperial units. That might mean that a buttload is fifteen farthings to the hectacre.
mmr
+6  A: 

MingW

Sinan Ünür
+7  A: 

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.

MBCook
+2  A: 

Pelles C is a nice, lightweight IDE for Windows, which bundles an LCC-based compiler.

Rob
+1  A: 

Open Watcom is an open source C / C++ compiler.

MikeJ
+5  A: 

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

Unknown
Thanks for this one. Cute.
Sinan Ünür
+5  A: 

Visual Studio 2008 express edition, if you don't mind Microsoft products, is free, and has C++ support (so, therefore, C support).

mmr
If you want the only compiler that "just works" out of the box, VS Express edition is you only true choice.
Joce
+2  A: 

This mingw link is better and latest.

http://tdragon.net/recentgcc/

plan9assembler
Agreed. The main mingw seems to have stagnated. I hope it doesn't die.
Unknown
A: 

+1 Visual Studio 2008 Express Edition

MeThinks
A: 

Digital Mars C and C++ compilers

dmityugov