a769
![]() |
|
|
|
|
|||||||
| General General questions about the FreeBSD operating system. Ask here if your question does not fit elsewhere. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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.
|
|
#2
|
|||
|
|||
|
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.
|
|
#3
|
|||
|
|||
|
I keep hearing that llvm is faster at compiling that gcc. but how much faster is it really?
|
|
#4
|
|||
|
|||
|
Some benchmarks that were recently posted on the mailing lists: http://lists.freebsd.org/pipermail/f...er/036380.html
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Solved] Clang/LLVM and /etc/make.conf | nackpere | FreeBSD Development | 3 | January 13th, 2013 17:31 |
| [Solved] LLVM/Clang - Default compiler in FreeBSD 9? | frooyo | General | 12 | December 23rd, 2011 10:00 |
| LLVM 3.0 Is Now Scheduled To Arrive In November | alie | Off-Topic | 5 | December 2nd, 2011 22:28 |
| LLVM or GCC for ports? | troberts | Installation and Maintenance of FreeBSD Ports or Packages | 4 | November 26th, 2011 21:58 |
| LLVM vs gcc performance benchmarking | everypot | Off-Topic | 7 | April 24th, 2010 21:42 |