C++ – Mac OS X free C compiler

c++compiler-constructionmacos

Is there a small, free C or C++ compiler for OS X, like TCC?

Xcode is not small, or simple like TCC, AFAIK.

I'm looking for something like a GCC binary file or TCC for OS X.

Best Solution

gcc is the most widely used one (and Apple provides official builds of it as part of XCode). XCode is also usually distributed on your OS X cd's, though that version may be a little out of date now, depending on what version of OS X you have.

For information and samples on how to use it, look here.

Look into Fink or one of the similar projects out there if you want a build of gcc that's not linked to Xcode. That said though, Xcode is a great IDE for OS X.