Jump to content
  • Advertisement
Sign in to follow this  
JWColeman

Good C++ Compiler for Mac OSX?

This topic is 3173 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Could anyone point me in the right direction for a compiler for mac osx? I'm not sure what to use without downloading a ton of programs and trying them all, so a recommendation is what I'm looking for.

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by NickGravelyn
Register at http://developer.apple.com/ and download their free Xcode IDE which includes the GCC compiler (I think that's the right name).

Yup gcc that comes with Xcode has always been good enough for me.
If you install the latest Xcode it comes with gcc 4.21 for macosx.

Share this post


Link to post
Share on other sites
Quote:
Original post by phantom
A friend of mine at work uses OSX and of late has been telling me about LLVM and Clang as a compiler setup in Snow Lepoard

Apple has been trying to get away from GCC for a while now. They want full control over the ObjC compiler (especially due to the "Apple-ifications" of ObjC2 features in Cocoa), and that wasn't realistically doable on GCC. And I think that Apple also wanted their own version of a .NET type of platform. Just wait until they start customizing the LLVM IL...

Share this post


Link to post
Share on other sites
Quote:
Original post by Yann L
Quote:
Original post by phantom
A friend of mine at work uses OSX and of late has been telling me about LLVM and Clang as a compiler setup in Snow Lepoard

Apple has been trying to get away from GCC for a while now. They want full control over the ObjC compiler (especially due to the "Apple-ifications" of ObjC2 features in Cocoa), and that wasn't realistically doable on GCC. And I think that Apple also wanted their own version of a .NET type of platform. Just wait until they start customizing the LLVM IL...
Don't forget that LLVM also forms the basis of Apple's GLSL and OpenCL compilers, so there may well be benefits to them from using a common compiler infrastructure.

Share this post


Link to post
Share on other sites
Quote:
Original post by swiftcoder
Don't forget that LLVM also forms the basis of Apple's GLSL and OpenCL compilers, so there may well be benefits to them from using a common compiler infrastructure.

Oh, there are obviously a lot of benefits for such a system. It's not only GLSL or CL, their entire OpenGL driver (including the software fallbacks) is JIT compiled by LLVM. I can see such a setup providing significant performance improvements under certain scenarios. And of course, a consistent compiler toolchain is logistically important.

I just can't get my head around their obsession with ObjC (which I hate with a passion), and their aggressive deprecation model.

Share this post


Link to post
Share on other sites
Quote:
Original post by Yann L
I just can't get my head around their obsession with ObjC (which I hate with a passion)
One can't deny that they get a lot of mileage out of it though, and their frameworks are truly fantastic (Cocoa, CoreAnimation, etc.). As far as the language itself goes, Scala it ain't, but I don't find it a bad language, and the level of interoperability with C and C++ is pretty nice [smile]
Quote:
and their aggressive deprecation model.
This one bites me again and again - having just moved to Snow Leopard and had my (primarily 32-bit) toolchain completely hosed by the lack of 64-bit Carbon... On the flip side, I can see why they don't want to see the platform stagnate, a la Windows XP.

Share this post


Link to post
Share on other sites
There's avoiding the platform stagnating and there's driving away developers because they can't afford to keep up with the development costs of upgrading practically everything for no particularly good reason.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!