Update: Since people still find this answer, I feel that I should provide a suitable update. For now, I hope that it is clear that Clang is absolutely a way of programming when programming, when Clang is the default compiler in new versions of Xcode and supports ARC, as well as new and upcoming language constructs (signatures, literals, etc.). ), There is almost no reason to compile with GCC, and for codebases using ARC and new functions, using a simple GCC is no longer relevant or possible (LLVM-GCC can support these functions, but now it does not give advantages over Clang, since Clang is fully stable).
To date (with LLVM-2.0 included in the beta version of Xcode 4.0), LLVM is mature enough for use in production code. It compiles a bit faster than GCC, and produces faster code, so use it whenever you can (pretty much try to avoid GCC if something is better available). The standard installation of Xcode 3.2.5 contains LLVM-1.6 (not the latest), so I would recommend either running some speed tests to see if there is a noticeable difference between GCC and LLVM, or compiling Clang from the source and getting the latest version.
Essentially, there is no longer a need for GCC, LLVM + Clang is more than enough.
Itai Ferber Jan 04 2018-11-11T00: 00Z
source share