Linked by Thom Holwerda on Tue 11th Nov 2008 11:44 UTC, submitted by tyrione
General Development LLVM 2.4 has been released. "LLVM 2.4 includes many bug fixes, much faster compile times at -O0, substantially better code generation in various cases, a new PIC16 target, new IR features, and numerous other improvements and features (see the release notes for details)." You can get it at the project's download page.
Order by: Score:

Is it really useable?
by adkilla on Tue 11th Nov 2008 16:59 UTC
adkilla
Member since:
2005-07-07

I've tried the llvm-gcc bundled with XCode 3.1.1. So far there doesn't seem to be much practical use for it. The compiler bombs when attempting to compile Qt4.4.3.

Anybody had any better luck? There has been claims that llvm-gcc produces code faster than vanilla gcc.

RE: Is it really useable?
by sankazim on Tue 11th Nov 2008 17:42 UTC in reply to "Is it really useable?"
sankazim Member since:
2008-11-11

The llvm-gcc component is the most recent one and indeed it is known that it is good for medium sized project, while QT is quite a big one.

The great advantage of llvm is for creation and optimization of specialized languages, or in the various conditions in which glue code between components needs to be optimized.

RE[2]: Is it really useable?
by adkilla on Wed 12th Nov 2008 18:20 UTC in reply to "RE: Is it really useable?"
adkilla Member since:
2005-07-07

From the LLVM 2.4 release notes:

Known problems with the llvm-gcc C++ front-end
The C++ front-end is considered to be fully tested and works for a number of non-trivial programs, including LLVM itself, Qt, Mozilla, etc.

Exception handling works well on the X86 and PowerPC targets. Currently only Linux and Darwin targets are supported (both 32 and 64 bit).


By the way llvm-gcc is a supported compiler in Qt4 mkspecs.

Edited 2008-11-12 18:21 UTC

RE: Is it really useable?
by Valhalla on Tue 11th Nov 2008 23:20 UTC in reply to "Is it really useable?"
Valhalla Member since:
2006-01-24

adkilla wrote:
-"Anybody had any better luck? There has been claims that llvm-gcc produces code faster than vanilla gcc."

AFAIK llvm-gcc just uses gcc as a front end, the code optimization is all done by llvm. And yes, I've seen claims of better optimized code generation but I've yet to confirm it for myself (actually if anyone has some benchmarks or some such it would be very interesting). IIRC one of the authors of llvm claimed an overall 5%-10% speed increase in the generated code when compiling using llvm (which I personally think sounds almost too good) as compared to gcc. Of course both compilers are in heavy development and any such statements can be obsolete from day to day, but given that llvm is a relatively new project it's likely alot easier to implement new modern optimization techniques into it's codebase than into the much older and larger gcc toolchain which also has to make sure it doesn't break since basically the entire oss world depends on it.

I can't vouch for it's overall useability as I've yet to try it out, but given that it consists of many components I suppose some are more mature than others. For instance I believe the jit compiler is being used in OSX's opengl stack.

RE: Is it really useable?
by tyrione on Wed 12th Nov 2008 00:17 UTC in reply to "Is it really useable?"
tyrione Member since:
2005-11-21

I've tried the llvm-gcc bundled with XCode 3.1.1. So far there doesn't seem to be much practical use for it. The compiler bombs when attempting to compile Qt4.4.3.

Anybody had any better luck? There has been claims that llvm-gcc produces code faster than vanilla gcc.


What's the minimum gcc compiler allowed to compile Qt4.4.3?

RE[2]: Is it really useable?
by adkilla on Wed 12th Nov 2008 18:14 UTC in reply to "RE: Is it really useable?"
adkilla Member since:
2005-07-07

The minimums are available here:
http://trolltech.com/developer/supported-platforms

Looks like gcc 3.4 and above should work.

CLang C++ Status
by tyrione on Wed 12th Nov 2008 02:49 UTC in reply to "Is it really useable?"
tyrione Member since:
2005-11-21

This probably answers your question about the current viability of LLVM and it's CLang project with Qt's C++ Toolkit.

http://clang.llvm.org/cxx_status.html

RE: CLang C++ Status
by adkilla on Wed 12th Nov 2008 18:16 UTC in reply to "CLang C++ Status"
adkilla Member since:
2005-07-07

clang is not llvm-gcc. Look at this comparison at the llvm site:
http://clang.llvm.org/performance.html

How could there be performance differences between clang and llvm-gcc if they are the same compiler?

RE[2]: CLang C++ Status
by kusami on Wed 12th Nov 2008 19:24 UTC in reply to "RE: CLang C++ Status"
kusami Member since:
2008-11-12

Those performance figures are *compile* time not runtime.

RE[3]: CLang C++ Status
by adkilla on Thu 13th Nov 2008 06:30 UTC in reply to "RE[2]: CLang C++ Status"
adkilla Member since:
2005-07-07

Yes, that is what I was referring to. If the compilers are the same why are the comparisons between them show significant difference between them?