PDA

View Full Version : What compiler for Tiger?


thegeek
2005-01-14, 10:10
Previous iterations of Mac OS X have been based upon successive versions of gcc, the Gnu Compiler Collection (http://www.gnu.org/software/gcc/). Incremental improvements in gcc's optimization abilities have yielded performance increases across the board as nearly every piece of code that our machines run has been compiled with gcc.

The new gcc 4.0 series has a brand new optimization scheme which is claimed to have large advantages over previous versions. It isn't tagged "stable" yet, but basing the development quite on a pre-release compiler is something that Apple has done before.

Do we know if Tiger will be based on the new gcc?

Also, the were some rumors that some technology from IBMs excellent xlc (http://www-306.ibm.com/software/awdtools/xlcpp/) compiler might be slipping our way, or at minimum would be available for the Darwin platform. Seemingly unlikely as IBM is trying to sell xlc for Mac OS X, but the advantages of making the PowerPC run faster seems a worthy goal. Intel gives away their compiler.

MCQ
2005-01-14, 11:57
Well, they're including gcc 4.0 in their Tiger dev tools. I'm not sure what Tiger itself is being based on.

http://developer.apple.com/macosx/tiger/


Along with improvements to the GUI, Xcode 2.0 will ship with GCC 4.0 which features a new C++ Parser and several code generation improvements including auto-vectorization. While hand-tuning Velocity Engine code can get you the maximum performance from the G4 and G5 processors, now you can have GCC do the heavy lifting for you. You'll benefit from this without any extra effort, with auto-vectorization in GCC bringing anywhere between a 4X and 14X performance improvement to code that works with arrays of data.

thegeek
2005-01-14, 15:33
Ahh, I had previously seen 3.5 mentioned as what was going with Xcode 2.0.

Still curious about xlc though.

Kickaha
2005-01-14, 18:38
3.5 was renamed 4.0 due to a few major features being rolled in.

thegeek
2005-01-14, 23:25
Ok, makes sense. Thanks folks!

stoo
2005-01-15, 17:01
I thought I'd have heard about a major gcc revision. It would be interesting to download gcc 4 and the replace the guts of a Panther Mac with freshly compiled goodness... :D