Monday, May 24, 2010

How can you write and run C code on mac?

You get yourself a compiler that runs on a mac.





I am told you can get this to run on a mac:


http://www.leonardo-vm.org/





Apple itself distributes Xcode:


http://developer.apple.com/tools/downloa...





I checked out this Mac forum:





http://forums.macrumors.com/showthread.p...





Their response in the end is the Gnu GCC compiler which is so familiar to those of us who work on Linux.





http://gcc.gnu.org/

How can you write and run C code on mac?
you cant... its a mac.
Reply:C is portable and will run where it was compiled so long as you are not counting on OS specific API's





You can can GCC for this.
Reply:Find a compiler that works on the mac and get it.
Reply:Just get a compiler.
Reply:Get XCode:


http://developer.apple.com/tools/downloa...





Or just get GCC for Mac.





In order to download XCode, you'll have to create developer's account with Apple, which is free. XCode includes GCC.


No comments:

Post a Comment