Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jjahshik32

macrumors 603
Original poster
Sep 4, 2006
5,366
52
I'm taking an intro to c programing and need a compiler for osx. If anyone can recommend a good compiler I would much appreciate it.
 
Download the developer tools from developer.apple.com (free login required): they include a standard command-line compiler for C.
 
Download the developer tools from developer.apple.com (free login required): they include a standard command-line compiler for C.

Is that the same as the GCC compiler that comes with the leopard disc? Also if its not, what is it called?
 
Yes the dev tools include gcc/g++/gdb all the good stuff.

They also include XCode if you want to work from a gui rather than the command line.
 
As of Snow Leopard:

"Apple now offers a total of four compilers for Mac OS X: GCC 4.0, GCC 4.2, LLVM-GCC 4.2 (the GCC 4.2 front-end combined with an LLVM back-end), and Clang"

"GCC 4.2 is still the default compiler in Snow Leopard, but this is a transitional phase. Clang is the recommended compiler, and the focus of all of Apple's future efforts."

Make sure you read this incredibly huge review from Ars:
http://arstechnica.com/apple/reviews/2009/08/mac-os-x-10-6.ars/9

Just install Xcode and you're away.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.