Which C Compiler do you recommend for Windows (Not C++, C ANSI)
Related:
Which C Compiler do you recommend for Windows (Not C++, C ANSI)
Related:
Free. Open source. GNU. Compiles native windows binaries. Can't get much better than that.
Visual Studio.
Good compiler, great environment, and a fantastic debugger all in one package. The express edition is a free download.
Here are some:
I like LCC for Win32 for strictly C compilation. It's free for noncommercial use. http://www.cs.virginia.edu/~lcc-win32/
if you dont like any of the above you can try miracle-C
i prefer mingw + vim or visual studios but i cant post comments yet so....
but i have tried miracle-C and it wasnt bad
If you look for performance optimization go with an Intel compiler. It's expensive, though.
By the way, it should produce optimized code that's pretty optimized for AMD machines as well.
If you're looking at an open source project, then I would recommend using a freely available (and preferrably open source) compiler. I scratch my head a bit at some open source projects I've seen that need visual C++* to compile on windoze...
I would use MingW as others have suggested. It is not particularly friendly (or that straight forward to download for that matter), however I'm pretty sure you can put put the Eclipse C IDE on top of it which would help a lot.
I've never used Open Watcom, but that would be another possibility for the same reasons. (In fact, I has a small C++ program I'm writing in Linux currently (with wxWidgets) that I'm going to port to windows as well, and I might give Open Watcom a try as well as MingW and see which was a more pleasant experience.)
*Yes, okay, I guess you can use the express edition, if the author has set it up so you're able to, that is....
gcc is a better choice over visual C++ for C99 compliance. C99 has very nice features such as variable argument macro and variable length array. gcc supports them but not Visual C++.
Pelles C is better than any of the above recommended for C99 compliance and imho if you are going to be coding in C it is better to get a compiler that supports the current standard. Pelles C is based off of LCC and is a complete development environment for windows (resource linker, project management, the works). It is my C compiler of choice because of it's focus on compliance with the c99 standard and it certainly provides a more complete development environment for windows than you are going to get with gcc.
If it's just a compiler you're after, I use gcc installed with cygwin. You'll have the added benefit of a hundred other gnu utils at your disposal as well.
Assuming you're also going to want a full blown IDE then I'd highly recommend taking a look at the Eclipse CDT project. http://www.eclipse.org/cdt/
The CDT (C/C++ Development Tools) Project provides a fully functional C and C++ Integrated Development Environment (IDE) for the Eclipse platform. The features include: support for project creation and managed build for various toolchains, standard make build, source navigation, various source knowledge tools, such as type hierarchy, call graph, include browser, macro definition browser, code editor with syntax highlighting, folding and hyperlink navigation, source code refactoring and code generation, visual debugging tools, including memory, registers, and disassembly viewers.
Dev C++ is good too. It comes with gcc at its back end. But the project is probably dead by now.
Hahaha Visual Studio it is the only used in Big Companies?, Let me tell you but that is not accurate, depend the field, for example in embedded I have seen lots of Metrowerks and Intel, Some shops use gcc or still using Borland C++ and anothers use VC++. The only good of VC++ it is somewhat good integrated IDE but their compiler and their support for the standard sucks big time and always have been.
I suggest as another people suggested for open source I would use MingW with Eclipse CDT or Pelles C are the best ones for ANSI C99
2c.