PDA

View Full Version : [SOLVED] What compiler uses Apple



cl333r
October 24th, 2008, 02:08 PM
Hi,
I was wondering what compiler uses Apple for their C/C++ apps. I googled but couldn't find any answer.

LaRoza
October 24th, 2008, 02:11 PM
http://developer.apple.com/tools/xcode/

(http://laroza77.wikidot.com/c)

jespdj
October 24th, 2008, 02:51 PM
As far as I know, Mac OS X and most applications for that OS are not written in C or C++, but in Objective-C (http://en.wikipedia.org/wiki/Objective-C), which is a programming language that looks like C but has object oriented capabilities added.

LaRoza
October 24th, 2008, 04:43 PM
As far as I know, Mac OS X and most applications for that OS are not written in C or C++, but in Objective-C (http://en.wikipedia.org/wiki/Objective-C), which is a programming language that looks like C but has object oriented capabilities added.

True, but not relevant.

The OP asked about two languages, not that one. Objective-C is also a strict super set of C, so valid C code is valid Objective-C code.

joninkrakow
October 24th, 2008, 04:50 PM
Hi,
I was wondering what compiler uses Apple for their C/C++ apps. I googled but couldn't find any answer.

Well, I've compiled a few X11 and commandline apps in OSX, and had to install X-tools to do so, but compiling used GCC 4.0.something when I did it. I have heard that gcc is also used for compiling Quartz apps, but I can't speak authoritatively on that. I only know that gcc is used for X11 and commandline apps.

-Jon

cl333r
October 24th, 2008, 08:28 PM
From the LaRoza's link:

...and the powerful GCC compiler capable of targeting Intel and PowerPC regardless of host platform.
looks like they're using gcc as well. Thanks all, now I got a clue.
offtopic: Micro$oft must also be using gcc internally :)

forrestcupp
October 24th, 2008, 09:29 PM
Micro$oft must also be using gcc internally :)

No, they're not, but you can use gcc to compile Windows programs.