DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 15th February 2012
aleunix aleunix is offline
Real Name: Alessandro
Spam Deminer
 
Join Date: May 2008
Location: Italy
Posts: 224
Default LLVM Clang Vs gcc

I read some FreeBSD article where there is the intention to replace GCC with clang/LLVM.
On OpenBSD exist similar project?
Or gcc remain the main compiler even on the future?
Reply With Quote
  #2   (View Single Post)  
Old 15th February 2012
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,056
Default

OpenBSD would try to use PCC as a GCC compilter replacement.
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
Reply With Quote
  #3   (View Single Post)  
Old 15th February 2012
aleunix aleunix is offline
Real Name: Alessandro
Spam Deminer
 
Join Date: May 2008
Location: Italy
Posts: 224
Default

Thanks for the reply.
Now i'm trying to find information about the Portable C Compiler
I find this old (2008) pdf document.
News of the recent first release.

For the few things that i'm reading now the key feautures of this new compiler is that the core function depend from the machine is very small, but i would like known how easy is the support for the main compiler and how easy is the support for new standard?
As for example the new C++11.
Reply With Quote
  #4   (View Single Post)  
Old 15th February 2012
aleunix aleunix is offline
Real Name: Alessandro
Spam Deminer
 
Join Date: May 2008
Location: Italy
Posts: 224
Default

But i can't access on the pcc home page for more information.
Reply With Quote
  #5   (View Single Post)  
Old 15th February 2012
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,056
Default

Quote:
Originally Posted by aleunix View Post
As for example the new C++11.
From what I recall, PCC is C compiler only, it does not compile C++ code.
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
Reply With Quote
  #6   (View Single Post)  
Old 15th February 2012
aleunix aleunix is offline
Real Name: Alessandro
Spam Deminer
 
Join Date: May 2008
Location: Italy
Posts: 224
Default

So for C++ is sufficient use one or the other indicated on the title.
Good.
Thanks.
Reply With Quote
  #7   (View Single Post)  
Old 16th February 2012
thirdm thirdm is offline
Spam Deminer
 
Join Date: May 2009
Posts: 248
Default

Quote:
Originally Posted by aleunix View Post
So for C++ is sufficient use one or the other indicated on the title.
Good.
Thanks.
Btw if you want to start using C++11 features you'll want the gcc from ports, not the system compiler (or use clang from ports). The base gcc has no C++11 support at all. At this moment no compiler implements all of C++11 yet, so the later a compiler you can get for this the better. I don't know whether gcc or clang is a better bet at the moment or exactly how much work the porters have to do to get up to the latest one of each. I looked briefly and it looked to me like gcc 4.6 was ported (but broken on one architecture?), but I didn't go so far as to try the package (I have a bunch of things that have to happen first I won't bore you with and, besides, I'm quite happy to wait until Bjarne Stroustrup gets his book out to get going learning this stuff).
Reply With Quote
  #8   (View Single Post)  
Old 17th February 2012
backrow backrow is offline
Real Name: Anthony J. Bentley
Shell Scout
 
Join Date: Jul 2009
Location: Albuquerque, NM
Posts: 136
Default

Quote:
Originally Posted by vermaden View Post
OpenBSD would try to use PCC as a GCC compilter replacement.
This is not necessarily true. If someone puts the work in, then yes. However, if developers focus on integrating LLVM with base (and I’ve certainly seen more OpenBSD devs using LLVM than pcc), then it will very likely be LLVM instead.

Not that anybody’s opposed to moving to pcc. The only problem is the work that remains to be done. In my personal opinion, the most likely way that pcc will get jump‐started in OpenBSD would be if someone were to add support for the gcc2 architectures.
Quote:
Originally Posted by vermaden View Post
From what I recall, PCC is C compiler only, it does not compile C++ code.
I recall reading on the pcc mailing list that C++ support is eventually planned, but it’s not close enough to be on any roadmap.
__________________
Many thanks to the forum regulars who put time and effort into helping others solve their problems.
Reply With Quote
  #9   (View Single Post)  
Old 22nd February 2012
aleunix aleunix is offline
Real Name: Alessandro
Spam Deminer
 
Join Date: May 2008
Location: Italy
Posts: 224
Default

Quote:
Originally Posted by thirdm View Post
Btw if you want to start using C++11 features ...
No problem, I have no hurry.

These some reference about the actual situations for C++11
C++0x Compiler Support
C++0x/C++11 Support in GCC
C++ and C++'11 Support in Clang
Reply With Quote
Reply

Tags
clang, compiler, gcc, llvm

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
LLVM 3.0 requires Clang and DragonEgg J65nko News 0 2nd December 2011 06:55 PM
LLVM milestone reached - Clang compiler self-hosts J65nko News 0 5th February 2010 03:48 PM


All times are GMT. The time now is 08:35 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick