Anyone here know of a good compiler for osx snow leopard?

Discussion in 'Mac Programming' started by jjahshik32, Jan 21, 2010.

  1. jjahshik32 macrumors 603

    Sep 4, 2006
    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.
  2. robbieduncan Moderator emeritus


    Jul 24, 2002
    Download the developer tools from (free login required): they include a standard command-line compiler for C.
  3. jjahshik32 thread starter macrumors 603

    Sep 4, 2006
    Is that the same as the GCC compiler that comes with the leopard disc? Also if its not, what is it called?
  4. gorn macrumors member

    Jun 17, 2009
    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.
  5. danbt79 macrumors member


    Apr 9, 2009
    United Kingdom
    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:

    Just install Xcode and you're away.

Share This Page