The LLVM project also includes LLDB, a new debugger. Apple has announced that llvm-gcc-4.2 is “frozen” (no new features or bug fixes) as of Xcode 4.4 and will be removed in a future version of Xcode. Certain newer features of Objective-C, such as automatic reference counting (ARC), are available only by using the Clang compiler.Ĭlang is the default compiler in the current version of Xcode.Clang provides much more informative error messages when you make a mistake.The Clang compiler has many advantages over llvm-gcc-4.2: Note that Apple refers to the Clang compiler as “LLVM Compiler N,” where N is the current version number-4.0 as of Xcode 4.4. The current compiler is the Clang compiler, which combines a new unified parser for C, Objective C, C++, and Objective C++ with the LLVM code generator and optimizer. In the first part of the transition Apple used a compiler called llvm-gcc-4.2 that combined the front end from gcc 4.2 with the LLVM code generator and optimizer. LLVM is not a single compiler it is a set of modules that can be used to build compilers, debuggers, and related tools. However, in the past several years they have transitioned to using compilers from the open-source LLVM (Low Level Virtual Machine) project. Historically, Apple has used the open-source GNU compiler, gcc, for building iOS and OS X programs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |