Re:LLVM Blog: Clang Builds LLVM
by pquerna on Thursday December 24, 2009 @10:07PM
(#1014719)
This is a pretty huge step. C++ support in Clang has always lagged behind, but the Clang internals is all C++ -- as mentioned in the blog it isn't self-hosting yet, just self-building, but this is major step in making Clang a true replacement for GCC.
Compilers revolutions don't happen overnight, but rejoice, you are seeing one happen right now.
I personally can't wait to see systems like OSX & FreeBSD use Clang as their default compilers, which might happen in the next few years.
Re:LLVM Blog: Clang Builds LLVM
by Zev on Thursday December 24, 2009 @11:18PM
(#1014749)
I personally can't wait to see systems like OSX & FreeBSD use Clang as their default compilers...
Some parts of OS X are already compiled with Clang. Off the top of my head, OpenCL, OpenGL and Xcode are all compiled with Clang now. Also, I think (but can't source) AppleScript Studio is also compiled with Clang. And there's MacRuby that's built on llvm.
Re:LLVM Blog: Clang Builds LLVM
by pohl on Thursday December 24, 2009 @10:53PM
(#1014740)
I'm happy to see this moment. I don't want to diminish it, but aren't these tools written in a "tasteful subset" of c++, which could mean there are still many missing nooks and crannies?
Re:LLVM Blog: Clang Builds LLVM
by samlittlewood on Friday December 25, 2009 @06:19AM
(#1014948)
Yup, which is why self hosting is a step (albeit a very cool one) on the way. You still have to deal with all the features and idioms you don't know - I remember Duff's device and other forms of switch abuse falling into that category.
It is great dogfood, but does lead to some head exploding debugging - you are looking at a piece of badly generated code trying to figure out how many generations back the bug is.
Compilers revolutions don't happen overnight, but rejoice, you are seeing one happen right now.
I personally can't wait to see systems like OSX & FreeBSD use Clang as their default compilers, which might happen in the next few years.
Some parts of OS X are already compiled with Clang. Off the top of my head, OpenCL, OpenGL and Xcode are all compiled with Clang now. Also, I think (but can't source) AppleScript Studio is also compiled with Clang. And there's MacRuby that's built on llvm.
It is great dogfood, but does lead to some head exploding debugging - you are looking at a piece of badly generated code trying to figure out how many generations back the bug is.