IBM Releases XL compilers for Mac OS X
Visigothe writes "IBM released their XL Fortran Compiler and XL C/C++ Compiler for OS X. The compiler is binary compatible with GCC 3.3, and has multiple levels of optimization, creating binaries that are much faster than their GCC-compiled counterparts." No prices are noted, and the planned availability date is January 16.
Has anybody seen any useful benchmarks of compiler output comparing XL and GCC on PowerPC?
That would be interesting to see.
Very cool! Looks like the C/C++ compiler also has support for Objective-C now. Even if it's in the form of a "technology preview" and probably preliminary.
This means that this could well be usable as a replacement for GCC in developing Cocoa-based apps. It's good to finally have some options. Can't wait to see how well it works!
It's great that IBMs compiler produces faster code that is compatible with gcc, however it appears that it won't generate code that runs on G3 machines. This means if you want to build apps with it you either need to write code that builds with two compilers or not support any G3 machines.
As a very happy G3 user I will be sad when I'm forced to upgrade.
The middle mind speaks!
According to an Ars thread the XLC compiler will be $499 for a single seat license. WAY below the cost for the AIX versions.
Linkage
I hope you die painfully and alone.
What is MacOS X currently compiled with? Is it GCC? If so, the new IBM compiler would presumably speed up the entire OS somewhat if it were recompiled via IBM's compiler?
Karma? Sorry, i don't believe in superstition. http://talk.thinkingmatters.org.nz
Pardon my ignorance, I was 31337 for only 37 seconds in 1997.
What do they mean when they say that two compilers are "binary compatible" Does it mean that XL produces identical machine code? Does it take identical switches so makefiles don't have to be rewritten? Does it simply mean that XL has the same foibles as gcc, so code written to gcc's foibles doesn't need tinkering? Use of the term doesn't quite fit with my current understanding of compilers.
-Troy
What does Apple use to compile OS X - and if IBM get the Objective C sections woking properly, could Apple use the IBM comiper to get OS X to run faster?
Moneyed corporations, non-working 'poor' and criminal prisoners are turning productive citizens into tax-slaves.
Weren't these compilers supposed to bring automatic conversion of multiple 32bits arithmetic operations into Altivec-accelerated code ?
Maybe we deserve this world ?
So why are you still able to buy Fortran compilers? Because the people who use the language tend to be engineers (the physical kind) and scientists, and thus spend a lot of money on high-end computers. No Fortran compiler, not fat contracts for your Starfire and Origin boxes. Which is why Sun and SGI both sell Fortran. And whose the leading vendor of Fortran for the Itanium? Good guess.
So is IBM trying to help Apple sell more Macs? Probably not. They'd make a little money from the extra CPU sales, but not enough to justify something like this. More likely they have this compiler to help them sell more high-performance PPC systems. As long as they have it, not that much extra effort to port it to the Mac.
So has anyone got better pointers towards the state of their objective-c support? I know they say it is there as a technical preview with no guarantees until they finish, but does it basically work and is slow, or is it unable to compile even modestly complex stuff?
Big Blue might find it hard to compete with the free ADC tools, no matter the quality of their XLC.
don't forget x86, there's nothing STOPPING the *.app files from holding code for any architecture. If Apple ever does have to jump ship to x86 I'm sure there'll be a lot of apps that are distributed with PPC and x86 (and probably x86-64) executables inside them.
One Application Icon to Rule Them All.
"Sometimes, I think Trent just needs a cup of hot chocolate and a blankie." -Tori Amos on Nine Inch Nails
Nooooo!!!! Not Fortran 77! We need to be moving people AWAY from Fortran 77 and into the more modern Fortran 90/95. Awhile ago Slashdot, there was a piece about what was killing Fortran. Indeed, in my opinion, g77 is killing Fortran, due to the fact that the only free Fortran compiler is (was) based on Fortran 77. Please, everyone look at Fortran 95. Intel makes an awesome Fortran 77/90/95 compiler (ifc) which is free for non-commercial use under Linux. It is link-compatible with gcc. I have been doing scientific programming for ten years now, and I have yet to come across a problem where I had to write a piece of C or C++ code! Fortran is for scientific computing, and C (and its ilk) are for systems programming and GUIs and stuff. What allowed C to gain any ground whatsoever was the fact that Fortran 77 lacked dynamic memory allocation and had a rigid code layout. Not anymore, baby. Look at Fortran 95. It beats the pants off of C and C++ for scientific and mathematical computing!
Does this symlink itself over GCC or does it add itself to gcc_select so you could do sudo gcc_select xl and get the new compiler. I know using variables that you can get Project Builder/XCode to use a different compier or send different flags. I think now there is a bit of compeletion in the PPC compiler, maybe GCC will get faster.
This signature was left intentionally blank.
Just to note (this is slashdot after all) - these compilers have also been released for Linux on PowerPC! And there, it supports both 32-bit and 64-bit ABIs. On OS X, you're limited to the 32-bit ABI.
Sys req say it requires a G4 or G5, but the code it generates will work on a G3.
xlc's and xlf's binaries run fine on G3s (depending on the settings).
Darwin is the lower level of OSX - this is open source and freely avaailable to recompile and play with.
A recomplied Darwin can then be inserted back into your copy of OSX - Ok its a little more complicated replacing the various files (Kernel, libs etc) but the principal holds.
This all works fine using GCC - could someone a little more clued up than me try this with the IBM compliers and report on prgress.
If you manage this you will be a god to the Mac community - imagine speeding up everyones copy of OSX - lots of good karma