Linked by Eugenia Loli-Queru on Fri 18th Aug 2006 05:37 UTC, submitted by Hakime
Mac OS X Apple announced that they are using the LLVM optimizer and JIT within their Mac OS 10.5 'Leopard' OpenGL stack. LLVM will help in delivering better performance of the GL stack.
Thread beginning with comment 153491
To read all comments associated with this story, please click here.
Objective-C 2?
by John.Gustafsson on Fri 18th Aug 2006 06:27 UTC
John.Gustafsson
Member since:
2005-08-08

When will Mac OSX itself be compiled with LLVM? It sure sounds like a better solution than fat binaries and GCC or ICC. The thing LLVM needs before being useful on OSX though, is support for Objective-C.

Is there any systems out there using LLVM instead of GCC? Like some odd Linux distribution or something?

RE: Objective-C 2?
by Chris Lattner on Fri 18th Aug 2006 06:53 in reply to "Objective-C 2?"
Chris Lattner Member since:
2005-11-19

LLVM 1.8 already supports Objective C. It does not currently include the ObjC 2.0 features though.

Reply Parent Bookmark Score: 2

RE[2]: Objective-C 2?
by John.Gustafsson on Fri 18th Aug 2006 15:46 in reply to "RE: Objective-C 2?"
John.Gustafsson Member since:
2005-08-08

That's great news. It wasn't too terribly obvious from looking at the webpage on the other hand, so I hope you forgive me:)

Is ObjC experimental or a full blown version that I could compile with from XCode and expect to work just as well as gcc?

Reply Parent Bookmark Score: 1

RE: Objective-C 2?
by renox on Fri 18th Aug 2006 10:31 in reply to "Objective-C 2?"
renox Member since:
2005-07-06

> It sure sounds like [LLVM is] a better solution than fat binaries and GCC or ICC.

LLVM a better solution?
More eleguant ok, but what is best is whichever has the best runtime performance, which means in that order ICC > GCC > LLVM and which suits your need, no ObjectiveC on ICC so GCC > LLVM.

Now apparently Apple is set on LLVM so they will probably work on improving its performance: it's not because OpenGL on LLVM is faster than regular OpenGL (they handmade many parts) that generic code is faster on LLVM than GCC (currently I think it is quite the opposite.).

Reply Parent Bookmark Score: 1

RE[2]: Objective-C 2?
by resistor on Fri 18th Aug 2006 13:30 in reply to "RE: Objective-C 2?"
resistor Member since:
2005-07-06

You, sir, have that completely out of order.

LLVM is an aggressively-optimizing compiler that rivals GCC for speed in almost everything, and crushes it in situations where its most advanced features (LTO and inter-procedural optimization) come into play. There's a reason that GCC was considering incorporating LLVM's optimization framework rather than continuing to extend their own. ;-)

For comparison, look at the detailed build results on http://llvm.org/nightlytest/ , particularly at the GCC/LLVM column. That's the ratio of execution time of the test compiled w/ GCC vs. compiled w/ LLVM. Notice how the majority are .9 or greater, and a significant number are >1?

Reply Parent Bookmark Score: 5