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

    Joined:
    Sep 4, 2006
    #1
    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

    robbieduncan

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

    Joined:
    Sep 4, 2006
    #3
    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

    Joined:
    Jun 17, 2009
    #4
    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

    danbt79

    Joined:
    Apr 9, 2009
    Location:
    United Kingdom
    #5
    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.
     

Share This Page