llvm on FreeBSD

I've been reading a lot about llvm lately and was wondering if it would be a better default compiler than gcc on FreeBSD? Are there any major advantages with llvm over gcc other than objective c? I remember reading somewhere that in 9.-RC1 it has better objective c support.
 
I have played with clang 3.1 on 9.1 pre-release. Compilation is faster than gcc 4.2.1, and the diagnostics, code checking and static analysis are far better (I normally compile my stuff -std=c99 -Wall -Werror). Naturally, this causes problems for code that plays fast and loose. In my limited experience the generated code still runs very slightly slower than the code gcc generates. I expect that will continue to improve.
 
Back
Top