LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 04-23-2013, 04:30 PM   #1
ReaperX7
Senior Member
 
Registered: Jul 2011
Distribution: LFS-SVN, Slackware-14.1, PCBSD-10.0
Posts: 2,789
Blog Entries: 15

Rep: Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729
Question LLVM-Clang 3.2 vs GCC 4.8.0


I know this has been asked before regarding if Slackware could or would switch to LLVM-Clang at some point, but my question is a bit less inclined to when to more of this:

From reading up on LLVM-Clang's capabilities in comparison to GCC, would, and is it even possible to build Slackware, or even rebuild Slackware from the ground-up using only LLVM-Clang? And if so, would there be any benefits, with list and examples, but if not, what are the shortfalls and problems of this approach?

Just very very VERY curious.
 
Old 04-23-2013, 04:47 PM   #2
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 853

Rep: Reputation: 1658Reputation: 1658Reputation: 1658Reputation: 1658Reputation: 1658Reputation: 1658Reputation: 1658Reputation: 1658Reputation: 1658Reputation: 1658Reputation: 1658
Quote:
Originally Posted by ReaperX7 View Post
I know this has been asked before regarding if Slackware could or would switch to LLVM-Clang at some point, but my question is a bit less inclined to when to more of this:

From reading up on LLVM-Clang's capabilities in comparison to GCC, would, and is it even possible to build Slackware, or even rebuild Slackware from the ground-up using only LLVM-Clang? And if so, would there be any benefits, with list and examples, but if not, what are the shortfalls and problems of this approach?
I'll try to summarize: Yes, it would be possible, but not without some patches (and some of those patches would have to be applied to Clang). The patches for this generally don't exist yet -- so figuring them out would be part of the exercise. Until someone does this, it's not possible to say with any certainty whether the resulting binaries would work better, but I'd tend to think that there would not be a huge difference. Since most people are currently compiling with gcc, compiling with Clang is not as well tested, and is likely (at this time) to be less reliable.

One small example -- I got a report than since recompiling LLVM/Clang using Clang, it quit working on a Pentium III machine. So it's possible that Clang is less able to control itself in terms of retaining compatibility on older x86 CPUs.
 
2 members found this post helpful.
Old 04-23-2013, 05:35 PM   #3
ReaperX7
Senior Member
 
Registered: Jul 2011
Distribution: LFS-SVN, Slackware-14.1, PCBSD-10.0
Posts: 2,789
Blog Entries: 15

Original Poster
Rep: Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729
Thanks for the insight into this Patrick. Much appreciated.

I hadn't heard about that x86 Pentium III issue, but as with anything like that, various factors could have been involved.

It would be interesting to see how it would affect non-legacy builds like x86-64 though as compatibility with Pentium III is less than fickle a worry.

As far as patches go, I know FreeBSD has been keeping a good update on their ports packages recently, perhaps a study of their work can land some insights into a full work-over of LLVM/Clang usage.

Last edited by ReaperX7; 04-23-2013 at 05:41 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: LLVM/Clang 3.3 Very Competitive To GCC 4.8 LXer Syndicated Linux News 0 04-07-2013 09:00 PM
LXer: LLVM/Clang vs. GCC On The ARM Cortex-A15 Preview LXer Syndicated Linux News 0 12-01-2012 10:42 PM
LXer: GCC 4.6, LLVM/Clang 3.0, Open64 Benchmarks LXer Syndicated Linux News 0 11-07-2011 12:50 PM
LXer: Compiler Benchmarks Of GCC, LLVM-GCC, DragonEgg, Clang LXer Syndicated Linux News 0 11-08-2010 05:11 PM
LXer: Benchmarking LLVM & Clang Against GCC 4.5 LXer Syndicated Linux News 0 04-21-2010 02:30 PM


All times are GMT -5. The time now is 08:04 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration