tags:

views:

227

answers:

3

I am having 64 bit Windows 7 as my operating system and want to run some c programs. Is there a compiler for the same? I mean a 64 bit c compiler.

+5  A: 

Yes, you can try MinGW-w64. It's a 64-bit distribution of GCC for Windows. I think you want mingw-w64-1.0-bin_i686-mingw_20100702.zip. This distribution is actively maintained, and GCC has quite good support for modern C.

Matthew Flaschen
Thanks for helping me out. I have downloaded the zip file extracted it but m not able to figure it out how to install it. Can u help me here.
Logan
+4  A: 

You could use the C compiler provided with Visual Studio 2010 (or probably 2008), just set your target type to x64 and compile .c files, you will get a 64-bit EXE.

DevinEllingson
It's important to note that `cl` does not support the latest C standard (C99), and Microsoft [has said](http://connect.microsoft.com/VisualStudio/feedback/details/485416/support-c99) they are not planning to fix this.
Matthew Flaschen
MSVC support for C is **dreadful**. It's so bad I prefer C++ over C on Windows.
Matt Joiner
On the bright side, I think on the whole ANSI C89 is preferable.
BobbyShaftoe
+2  A: 

If you're looking for a development environment as well, Visual C++ (Express) might be worth a peek: http://www.microsoft.com/express/Windows/

lzcd
I don't think Express does 64-bits.
brainjam
Really? According to MSDN, you can configure Express to do compile to x64...http://msdn.microsoft.com/en-us/library/9yb4317s.aspx
Mike Caron