a769 llvm on FreeBSD - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > General

General General questions about the FreeBSD operating system. Ask here if your question does not fit elsewhere.

Reply
 
Thread Tools Display Modes
  #1  
Old September 15th, 2012, 01:35
kr651129 kr651129 is offline
Member
 
Join Date: Feb 2012
Posts: 290
Thanks: 19
Thanked 3 Times in 3 Posts
Default 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.
Reply With Quote
  #2  
Old September 15th, 2012, 02:30
Uniballer Uniballer is offline
Member
 
Join Date: Dec 2009
Posts: 191
Thanks: 9
Thanked 26 Times in 26 Posts
Default

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.
Reply With Quote
  #3  
Old September 15th, 2012, 03:49
kr651129 kr651129 is offline
Member
 
Join Date: Feb 2012
Posts: 290
Thanks: 19
Thanked 3 Times in 3 Posts
Default

I keep hearing that llvm is faster at compiling that gcc. but how much faster is it really?
Reply With Quote
  #4  
Old September 15th, 2012, 05:43
noobster noobster is offline
Junior Member
 
Join Date: Nov 2008
Posts: 79
Thanks: 1
Thanked 11 Times in 11 Posts
Default

Some benchmarks that were recently posted on the mailing lists: http://lists.freebsd.org/pipermail/f...er/036380.html
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT +1. The time now is 09:27.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0