Muhammad Hewedy
Muhammad Hewedy

Reputation: 30056

What's the compiler used by Xcode for Objective-c?

What's the compiler used by Xcode for Objective-c, it is GCC?

Upvotes: 2

Views: 2815

Answers (2)

Wooble
Wooble

Reputation: 89927

The compiler is by default Apple's LLVM in newer versions of Xcode (3.1 and later); it previously used gcc (which is still installed by Xcode, and which can be specified as the compiler to use).

Upvotes: 4

Youssef
Youssef

Reputation: 3592

GCC and LLVM can be used.

From Apple:

Apple LLVM Compiler 2.0

Apple LLVM is the next-generation compiler technology powering Xcode 4. Based on the vibrant open source LLVM.org project led by Apple engineers, the Apple LLVM compiler is modern thinking, tuned for iPhone, iPad, and the multi-core Mac. Apple LLVM is fast. It compiles code twice as quickly as GCC, yet produces applications that also run faster. The compiler was built from the ground up as a set of highly optimized libraries, easy to extend, easy to optimize, and designed for today’s modern chip architectures. In Xcode 4, the full Apple LLVM compiler stack — from the front end parser, to the back end code optimizer — has great support for C, Objective-C, and C++. Syntax highlighting, code completion, and every other index-driven feature is handled by the LLVM parser. If the compiler knows about a symbol, so does the Xcode IDE. C, C++, and Objective-C are all accurately understood at editing time, exactly as they are when building.*

Upvotes: 2

Related Questions