Slashdot Mirror


IBM Releases Compiler for Power4 and G5

davids-world.com writes "IBM offers its optimized XLC compiler not just for Intel CPUs, but also for its own G5 processor (article in German at Heise). Unlike gcc, it is optimized for the G5 and achieves a major boost in speed, as first results show. I guess we will have to compare the new benchmark data (once available) with the data we get with the optimized Intel compiler for Xeon. The compiler is available for download now."

100 of 471 comments (clear)

  1. All right! by Prince_Ali · · Score: 4, Funny

    So will this new compiler speed up the process of porting Duke Nukem Forever to the Mac?

    1. Re:All right! by Lxy · · Score: 4, Funny

      Yes, it compiles vaporware in half the time.

      --

      There is no reasonable defense against an idiot with an agenda
      :wq
    2. Re:All right! by rvaniwaa · · Score: 2, Funny
      Yes, it compiles vaporware in half the time.
      Thats nothing! I am coming out with a compiler next year that will compile vaporware in just 1/3 of the time as the IBM compiler! --Ron
      --
      main(i){(10-putchar(((25208>>3*(i+=3))&7)+(i ?i-4?100:65:10)))?main(i-4):i;}
  2. Here we go again: by Anonymous Coward · · Score: 5, Insightful

    Lest anyone forget, Apple beat Intel in real world benchmarks... so the PC fanboys cried that SPEC benchmarks are the real measurement to gague speed... (probably because the comparisons were much closer when conducted this way). When SPEC benchmarks were displayed, these same fanboys cried that Intel's compiler wasn't used (instead the same compiler between platforms). Apple replied that its fairer to normalize the compiler between platforms and that while Intel could have achieved higher results when their compiler was used, Apple could do the same. So, here is that compiler. When/if the G5 outperforms Intel's best, what will the fanboys rally cry be next?

    1. Re:Here we go again: by Tumbleweed · · Score: 4, Informative

      > It's 64bit, supports more memory physically

      The 1.8 and dual 2.0 G5 machines support up to 8Gig of RAM when using 1Gig modules. How much RAM does a dual Opteron machine support?

      The G5 could also run Linux, and via some emulators, Windows software as well. I think the G5s run plenty of software.

    2. Re:Here we go again: by stratjakt · · Score: 5, Insightful

      When/if the G5 outperforms Intel's best, what will the fanboys rally cry be next?

      I nominate "who gives a shit?"

      Anyone who buys a PC because of lame ass benchmarks has no use for said PC, other than to yammer endlessly. If you work with macs, get a mac, if you work with PCs, get a PC, they're two completely different worlds.

      I'm sick of X is 30% better at [specific instruction] than Y arguments. It's like "xbox is 33% faster than ps2" or "mac is 21% faster than dell!". Who gives a flying fuck anymore? Xbox has the worlds shittiest lineup of games, and Macs dont run a *lot* of software essential to people.

      They're just devices, a means to an end. Quit telling me how your boot polisher is better than my doorstop. Its irrelevant.

      --
      I don't need no instructions to know how to rock!!!!
    3. Re:Here we go again: by RalphBNumbers · · Score: 4, Informative

      Also, it should be noted that Macs traditionally support more memory than they claim. Apple only announces the ammount you can put in with commonly available DIMM sizes, in this case 1GB.

      However, the G5's documentation shows the memory interface can actually handle 16GB not just 8, so if you can get 2GB DIMMs, you will probably be able to use them.

      --
      "The worst tyrannies were the ones where a governance required its own logic on every embedded node." - Vernor Vinge
    4. Re:Here we go again: by Frymaster · · Score: 4, Funny
      Simple: $/MHz, the x86 architecture spanks the commercially available G-series (Mac).

      great! i'll give you my commodore 64 for FREE. that will have the best $/MHz ratio possible. i'm sure you'll love it.

    5. Re:Here we go again: by Yokaze · · Score: 2, Informative

      > It's 64bit, supports more memory physically

      The G5 is 64bit, too, can address 42bit of memory and provides 64bit virtual address-space.

      The Opteron has address-space of 40 bit and 48 bit virtual per CPU.

      Not that it currently makes a lot of difference.

      --
      "Between strong and weak, between rich and poor [...], it is freedom which oppresses and the law which sets free"
    6. Re:Here we go again: by Matty_ · · Score: 2, Informative

      It is my understanding that the bus on the G5's _is_ HyperTransport.

    7. Re:Here we go again: by nattt · · Score: 2, Interesting

      Virtual PC doesn't run on the G5 because of it's lack of pseudo little endian support.

      --
      -- oldthinkers unbellyfeel ingsoc
    8. Re:Here we go again: by finkployd · · Score: 3, Interesting

      Unless raw CPU isn't your only deciding factor (frankly once you get over 1 GHz I really don't care, I'm not sequencing DNA here :) ). For me I know it is a technically inferior processor, but being able to run OSX was worth the minor trade off in raw CPU speed I got by getting a G4.

      But hey, to each his own.

      Finkployd

    9. Re:Here we go again: by znu · · Score: 5, Informative

      That's not really true at the high end. The P4 doesn't support multi-processor configurations, and Intel charges a major price premium for Xeon chips. Dell wants ~$4000 for a dual 3 GHz Xeon with specs similar to the $3000 dual 2 GHz G5.

      You could probably do a bit better building your own dual Xeon system, but it still wouldn't be cheap. You're looking at probably $1300-1500 just for the motherboard and the chips -- then add a case, RAM, a hard drive, a DVD burner, a video card, etc. and, for most potential buyers, a copy of Windows XP Pro.

      --
      This space unintentionally left unblank.
    10. Re:Here we go again: by Sloppy · · Score: 2, Informative
      Prove it, the Opteron alone costs $999/ processor
      I'm confused. Newegg claims to sell the Opteron 240 for $300 -- oh wait, I'm out of date -- they're $255 now. Is this a scam or something? I have a hunch it's for real, and they'll actually ship the chips if I pay them.

      I would love to PowerPC win -- I craved it so desperately for years -- but I don't think you realize Apple is finally facing serious competition these days. It's not like back when everyone sneered at Intel: It's AMD now, and AMD is hungry so they offer outstanding bang-for-buck. The Opteron is a fucking beast of a processor, for not much money.

      --
      As copyright owner of this comment, I authorize everyone to defeat any technological measure which limits access to it.
    11. Re:Here we go again: by Duck_Taffy · · Score: 3, Interesting

      Actually, I work part-time in a lab that does DNA sequencing, and the machines they have doing the sequencing are all Macs, even though there's plenty of Suns and Dells around.

      --
      Karma: Ran over your dogma.
    12. Re:Here we go again: by finkployd · · Score: 2, Interesting

      Huh, maybe I'm all backwards on this then. My understanding from our HPC guys is that Apple hardware is not up to par with that they do. Were the Apple's picked due to processing speed, or software considerations?

      Finkployd

    13. Re:Here we go again: by stratjakt · · Score: 2, Insightful

      I have all three.

      Halo is a good game. Halo is also a RELEASE TITLE! Its fucking old man! How long can Halo carry the xbox? Its like talking about Gran Turismo for PS2, get with the times.

      While PS2 has older a-list titles being sold as "classics", like Jak & Daxter, Devil May Cry, FFX, GT3, the XBox offers discounted "platinum" games like Simpsons Road Rage and SSX Tricky. Who are they kidding? By now, Halo should be 19.99 and Xbox should have long since moved past it.

      I mean, every month theres another good PS2 game out thats getting a bunch of buzz. A month later its replaced by something else, and you pick up the previous months game for 20 bucks. Kick ass. Even Gamecube seems to be pushing out the must-have titles faster than xbox.

      My problem is that two years later, people are still telling me how great Halo is. Yeah, its good, I've had it for two years. I'm sick of it. Its over.

      I mean I was at EB the other day just itchin to buy a game, and I pored over the xbox shelves - theres nothing there. Futurama intrigues me (since I like the show), but you just know the game sucks as hard as any of the simpsons titles. Oh well. Microsoft fails it.

      --
      I don't need no instructions to know how to rock!!!!
    14. Re:Here we go again: by x136 · · Score: 4, Informative
      AMD's Hypertransport is basically (exactly?) the same thing.
      Calling it "AMD's HyperTransport" isn't quite accurate. AMD is part of the HyperTransport executive committee, however. From The HyperTransport Consortium's About Us page:
      Advanced Micro Devices, Alliance Semiconductors, Apple Computers, Broadcom Corporation, Cisco Systems, NVIDIA, PMC-Sierra, Sun Microsystems, and Transmeta are charter members and comprise the Executive Committee of the HyperTransport Technology Consortium.
      That said, Apple does make use of HyperTransport technology in the Power Mac G5, as is stated on the Architecture page of the G5 site:
      ...as well as the HyperTransport interface that connects the PCI-X controller and the I/O subsystems to the system controller...
      --
      SIGFEH
    15. Re:Here we go again: by WinterSolstice · · Score: 4, Insightful

      So... which platform has more techincal diversity and freedom from proprietary dead ends?

      x86 - 2 chip manufacturers
      PPC - 2 chip manufacturers
      64bit/32 bit chipsets - 2 for Mac, 1 for PC, 1 for Sun, 1 for IBM
      Linux - Almost all platforms
      BSD - Almost all platforms
      Upgradeable with off-the-shelf hw - Mac, PC, Sun
      Basic GUI - Most platforms
      Complex multi-button mice - Mac, PC, Sun, IBM
      Simple one button mice - Mac
      FireWire 800 - Mac, PC
      FireWire - Mac, PC
      Gigabit adapter - Mac, PC
      Wireless (bluetooth, 802.11, etc) - Mac, PC
      Office software - Most platforms
      Image editing software - Most platforms
      Video NLE software - Mac, PC, SGI, Sun
      Audio NLE software - Most platforms
      Rendering software - Mac, PC, SGI, Sun, IBM
      NURBS software - Max, PC, SGI, Sun, IBM

      Did you get this far? Do you get my point?
      You can spend forever arguing about this kind of junk. What it comes down to is almost always personal preference. To respond to: "technical diversity and freedom from proprietary dead-ends." This simply doesn't exist. It is ALL proprietary, and nothing is technically diverse. All code that is written is written to a proprietary platform (until an Open-Source chipset comes along). Sure, you can see the code for the basic software, but what does that do for you? No high-end software comes with open source. I don't see Adobe or Discrete or AutoDesk moving to the OSS model. Funny that. Looks like anyone can reverse-engineer a pretty good word-processor, but it must take work to make a serious (not hobbyist) application.

      Pbbbbt. :P

      -WS

      --
      An operating system should be like a light switch... simple, effective, easy to use, and designed for everyone.
    16. Re:Here we go again: by sniggly · · Score: 2, Interesting

      It's got altivec in the CPU which can speed up vector computations dramatically - photoshop on mac also uses altivec optimalizations which is why its so very fast compared to photoshop on a comparable intel. I bet the dna sequencers use the altivec. (prolly ppc linux w gcc)

      --
      Of those to whom much is given, much is required.
    17. Re:Here we go again: by stingerman101 · · Score: 2, Interesting

      The G4's are much faster for sequencing since they use a better SIMD than the Intel's. Performance wise the G4's rock, and IBM's new compiler for OSX should not only catapult the G5's but benefit the G4's as other benchmarks are already showing. IBM is a much better partner than Motorola for Apple. It's the kind of partner Apple needs to win their competition with Wintel in the enterprise. All of a sudden the G4's are given a new lease on life. Expect to see a G4 equivalent from IBM soon on a 90nm process.

    18. Re:Here we go again: by rsborg · · Score: 4, Interesting
      I'm confused. Newegg claims to sell the Opteron 240 for $300 -- oh wait, I'm out of date -- they're $255 now. Is this a scam or something? I have a hunch it's for real, and they'll actually ship the chips if I pay them.

      Hmm... lets see... you're comparing a processor to a full system. Apples vs. Oranges.
      Lets do some real analysis... top server vs. top server:

      • A fullly specced dual G5 2.0Ghz ... $2770
        vs.
      • a similarly specced dual Opteron 244 1.8Ghz.... $3013
        And this isn't even from big boys like Dell (who wouldn't be caught dead using AMD)... just a bottomfeeder from pricewatch.

      Now, the G5 has all sorts of desktop/workstation goodies built in (Radeon 96/9800 Pro, awesome sound, good looks), and the with AMD server, you can cut corners with things you don't want in a server, like soundcard, highend video card, etc.

      My point? im sure we're still comparing apples to oranges. People who want a mainstream kickass workstation will love to buy the G5. People who want beowulf node clusters or inexpensive uberservers will love the Opteron. I just wish I had either :-)

      --
      Make sure everyone's vote counts: Verified Voting
    19. Re:Here we go again: by swillden · · Score: 2, Insightful

      Anyone who buys a PC because of lame ass benchmarks has no use for said PC, other than to yammer endlessly. If you work with macs, get a mac, if you work with PCs, get a PC, they're two completely different worlds.

      This isn't true for Linux users. I run Debian Linux, so my world is almost exactly the same across x86, PowerPC, Alpha and a whole bunch of other platforms. So, for me, these arguments about relative performance and relative cost *do* matter. At the moment I don't think there's much question that x86 has better performance for the money, but that may just be changing -- particularly when IBM starts selling its 2- and 4-way G5s. And this compiler could be what pushes the PowerPC over the top.

      --
      Note to ACs: I usually delete AC replies without reading them. If you want to talk to me, log in.
    20. Re:Here we go again: by 11223 · · Score: 2, Informative

      Nope. Apple worked with Genetech (a big customer of theirs) to create Apple/Genetech BLAST, which has AltiVec-izations in it. That was the source of some benchmarks for the Xserve last year.

      What people forget when dealing with benchmarking vectorized code is how much the ease of vectorization plays into it. AltiVec is much easier to code for than SSE/SSE2. This matters a lot.

    21. Re:Here we go again: by Farley+Mullet · · Score: 2, Funny

      Is ESR's "Ultimate Linux Box" semi- or full-automatic?

      Also, if you look at the bottom of this page, you'll see that the specs on the so-called ULB's don't match what you're saying, and the prices start at about $900 more.

    22. Re:Here we go again: by FredFnord · · Score: 2, Funny

      "Have you ever actually listened to Chomsky on politics?"

      Translation: I heard him on NPR once, while I was flipping radio stations.

      "He's a loon. A nutcase."

      Translation: He deviates from Common Wisdom in a direction that I find highly disturbing.

      "A textbook example of the fact that a person can be both a genius and an idiot simultaneously."

      Translation: I wish he'd just go back to being inoffensive and leave my little world alone.

      "Only the most superficial sort of moron would assume, because he is well educated in one area, that he is qualified to comment in another."

      Corrolary: Being a techie (reading slashdot), you are clearly unqualified to comment on who is qualified to comment on a given subject.

      --
      Sign #11 of Slashdot overdose: You see the phrase 'moderate Republican' and you wonder if that would be a +1 or a -1.
  3. What license is this under? by burgburgburg · · Score: 4, Interesting

    This is a preview beta. What will the final product be released under?

  4. Duke Nukem Forever - you don't get it by Anonymous Coward · · Score: 4, Funny

    >So will this new compiler speed up the process of porting Duke Nukem Forever to the Mac?

    Sorry to burst your bobble, but there's a reason why the game name's Duke Nukem *Forever*. That's the amount of time it will take to make it.

  5. Re:So much for open source at IBM by nomadic · · Score: 5, Insightful

    And is there a particular reason why IBM couldn't apply their work towards gcc? So much for the whole open-source, contribute-to-the-community philosophy.

    Maybe they just didn't feel like it. Maybe they just preferred working with their own code. IBM's contributed, a lot, it doesn't mean that they're now servants of the open source community.

  6. IBM G5 by Anonymous Coward · · Score: 3, Funny

    I, for one, welcome our new IBM overlords.

    Ok, now that's out of the way, let's get back to real comments.

  7. Re:can it compile the kernel? by SuperBanana · · Score: 4, Insightful
    worthless if it's not gcc compatible to compile the kernal

    Believe it or not, people DO sometimes run singular tasks on hardware which they want highly optimized...and believe it or not, you can actually install more than one compiler on your system at a time(yes, I know, amazing!)

  8. Re:So much for open source at IBM by finkployd · · Score: 4, Insightful

    IBM has contributed more to the open source community than I would venture to guess any other corporation on earth. (think of the code, projects, money, support, etc). I would not be so quick to blast them for not doing everything under an open source license. Encourage yes, but let's be civil about this. IBM is not just blowing smoke about OSS, they have put their money, time, and products where their mouth is.

    Finkployd

  9. Better scores on Apple's G5 by reporter · · Score: 2, Informative
    According to "Apple issues G5 benchmarks", the SPEC results generated by GCC for the G5 do not give it a significant performance advantage over Pentium-based workstations. The G5 scores 840 and 800 on SPECfp and SPECint, respectively, and the Pentium machine scores 693 and 836.

    The new IBM compiler should rectify the situation. Apple will not need to manipulate the SPEC scores by hiding behind the GCC compiler. In the past, Apple stuck with the GCC compiler because it causes the Pentium to perform much worse than it would perform on code compiled with an Intel-provided compiler.

    Of course, both the Power4 (and derivatives like the PowerPC 970) and the Pentium IV crush the UltraSPARC in performance. The new IBM compiler is yet in another nail in the coffin of the UltraSPARC.

  10. What about Xcode? by jared_hanson · · Score: 3, Interesting

    Xcode, the new compiler/IDE, which is based on gcc, is also optimized for the G5.

    For more information, see Apple's Xcode site.

    --
    -- Fighting mediocrity one bad post at a time.
  11. Re:why don't they just improve gcc? by levik · · Score: 4, Funny
    Is there some good reason why IBM doesn't just give away fre ThinkPads? I mean programmers use thinkpads... Managers use thinkpads. Thinkpads are pretty decent laptops...

    Why can't they just give them away for free?

    --
    Ñ'
  12. Re:So much for open source at IBM by kilonad · · Score: 3, Insightful

    Why would they use GCC as a base? It's not intended to compile over a wide range of platforms, just the pSeries processors (which includes the G5), so it's not like they need to be able to port it to x86. When you code a compiler for one fixed architecture you can (and almost always do) end up with HUGE speed increases, since you get to exploit all the fun capabilities of a chip without having to worry about compatibilty.

    Put simply, IBM wasn't that interested in improving the cross-platform GCC this time. They were interested in improving a number of their OWN compilers (not just C/C++, Fortran too!) for their OWN architecture.

  13. It's just not that easy.. by jcr · · Score: 4, Informative

    GCC's whole purpose is to be the most portable compiler possible, not the best performing on any particular architecture.

    XLC has a different set of design goals, and the internal architecture of the the compiler is different enough from GCC that there wouldn't be much point in trying to graft them together.

    -jcr

    --
    The only title of honor that a tyrant can grant is "Enemy of the State."
  14. Re:A Discussion over at Ars... by sockit2me9000 · · Score: 4, Informative
    Wow I really screwed the pooch with formating that. This is a clearer spec:

    Type of Code G4 G5

    Scalar +70% +210%

    Vector +40% +70%

    If this holds that places his 2.0GHz G5 (single)=254 at 787

  15. Re:why don't they just improve gcc? by stratjakt · · Score: 2, Insightful

    Because they aren't in love with RMS's conditional license? Because they have IP they dont want to release? Because they make money from their own compiler?

    Is there any reason that gcc maintainers dont just improve gcc? Isn't that what they're supposed to do?

    Gcc may be a complete compiler suite. Whee. It's hardly optimized for any platforms besides x86 and Alpha, though.

    --
    I don't need no instructions to know how to rock!!!!
  16. Re:why don't they just improve gcc? by jpc · · Score: 2, Insightful

    they probably wrote this a long time ago. Writing custom compilers for one architecture is easier than writing generic backends that gcc needs. And IBM has always had a lot of people working on compilers (like Backus, who did Fortran). Perhaps they will be persuaded to contribute to gcc too.

  17. Experience with xLC by cK-Gunslinger · · Score: 3, Informative

    Having used the xLC compiler (on AIX 4 and 5), I can say that it is a very nice compiler. It's probably one of the most strict ANSI-compliant compilers I've used. It also has some nice architecture tuning optimizations. If this new version speeds up the G5, then you can count on future versions giving even better increases.

    This is very good news for Apple-people.

  18. Re:So much for open source at IBM by afidel · · Score: 4, Informative

    Maybe because the optimizations require a view of the G5 that does not work with the generic view that GCC has of a processor. IBM tried to submit GCC patches but they were rejected because the GCC team did not like how deeply they affected the GCC core. GCC is THE cross platform compiler, the PPC 970 is enough different from the assumptions it makes that it will not produce optimal code without structural changes and the team doesn't want to do that.

    --
    There are 4 boxes to use in the defense of liberty: soap, ballot, jury, ammo. Use in that order. Starting now.
  19. Questions. by emil · · Score: 4, Interesting
    1. Can this compiler be used on any open-source unix-like kernels? I know that Linux has some hooks into gcc.
    2. Can this compiler be used to prepare glibc or any other major C libraries?
    3. Can this compiler be used to generate native Mac OS X GUI applications (cocoa)?
    4. Will the source be released?

    It is good to see IBM ending the habit of charging extra for the C compiler. AIX hasn't bundled the compiler since 3.2.5.

    1. Re:Questions. by Wesley+Felter · · Score: 4, Informative

      Can this compiler be used to prepare glibc or any other major C libraries?

      I'm sure xlc is used to compile AIX libc.

      Can this compiler be used to generate native Mac OS X GUI applications (cocoa)?

      No, it's not an Objective-C compiler.

      Will the source be released?

      No.

  20. I can see it now... by fuqqer · · Score: 3, Funny

    The top 5 questions/posts from slashdotters:

    1) Is it open source, I didn't RtFA?
    2) Why isn't it open source?
    3) Will they release it for Linux on the ppc?
    4) What does this have to do with SCO?
    5) Apple is dead and these are flawed stats flamewar.

    I'm too lazy to come up with a sig that is good enough to be the same everytime, so you can just read this instead. You can try and rid your braincells of this text, but it's pretty much stuck there now.

    1. Re:I can see it now... by jared_hanson · · Score: 3, Funny

      You know a situation is bad when it becomes cliche to post a list of cliches.

      I, for one, welcome our incompetent moderator overlords.

      --
      -- Fighting mediocrity one bad post at a time.
  21. Re:So much for open source at IBM by RalphBNumbers · · Score: 3, Insightful

    And is there a particular reason why IBM couldn't apply their work towards gcc?

    Yes.
    GCC rejected alot of their patches. GCC is a cross paltform compiler, the maintainers can be very picky about adding code that only helps one platform.

    IBM has contributed quite a bit to GCC, but GCC is not the proper place for a heavily optimised platform-specific compiler effort.

    --
    "The worst tyrannies were the ones where a governance required its own logic on every embedded node." - Vernor Vinge
  22. Re:Why? by Theaetetus · · Score: 5, Interesting
    I'd imagine one could cook up code to make whichever machine they want look "faster".

    Um, that's the point. IBM cooks up code to make the G5 look as fast as possible. Intel cooks up code to make the Xeon looks as fast as possible. Now compare. Fastest code/chip against the competition's fastest code/chip. The complaint in the past was that it was always the fastest code/chip of one side against a non-optimized code on the other side. Now we can have a fair shootout.

    -T

  23. Re:So much for open source at IBM by southpolesammy · · Score: 4, Insightful

    And is there a particular reason why IBM couldn't apply their work towards gcc? So much for the whole open-source, contribute-to-the-community philosophy.

    First off, most companies develop compilers for their hardware/software because they have the behind-the-scenes knowledge necessary to produce a superior product, and therefore, make money off of it. It's called having a competitive advantage, and I see nothing wrong with that.

    Second, who says that they won't eventually work to get these performance enhancements included into a future release of GCC? Just because they haven't done so yet does not mean that they never will.

    --
    Rule #1 -- Politics always trumps technology.
  24. Why not GCC? Why not GCC? by finkployd · · Score: 4, Insightful

    I know everyone wants to know why they did not just contribute to GCC, but seriously people, I imagine they have their reasons.

    Perhaps they wanted something done in a timly manner without waiting for the GCC people to accept their patches. Perhaps they felt a more elegant solution could be achieved by building their own compiler from scratch. Maybe they think GCC is a piece of crap (which for high performance computing, it is).

    Just because IBM support open source does not mean they are obligated to do everything for the sole purpose of advancing the movement.

    Finkployd

  25. Let's be objective by siskbc · · Score: 2, Insightful
    Lest anyone forget, Apple beat Intel in real world benchmarks

    What's a "real-world" benchmark? Comparing the function of photoshop on mac vs. pc, when it's developed natively for the mac? That's not really fair. It's simply not the same code. We could take any of the many programs made natively on PC (which are then ported to mac) and do the same trick.

    so the PC fanboys cried that SPEC benchmarks are the real measurement to gague speed... (probably because the comparisons were much closer when conducted this way).

    And I'm sure that the macheads don't favor the "photoshop test" for the same reason? We need some objectivity here. Nothing wrong with a fair benchmark, and I'll go on record as always preferring a benchmark, regardless of who it favors.

    Apple replied that its fairer to normalize the compiler between platforms and that while Intel could have achieved higher results when their compiler was used

    Why fairer? Shouldn't tests use whatever compiler will *actually be used*? If apple/IBM made a chip without a decent compiler to support it, that's their problem. I'd say it was fair to use Intel's compiler for intel's chip. Now it will be fair to use IBM's compiler for IBM's chip. Also interesting was how you suspect the "fanboys" of being biased when they wanted benchmarks instead of "real-world" tests, but Apple just "realized that it's fairer" to do something that benefited them. It works both ways.

    Apple could do the same. So, here is that compiler. When/if the G5 outperforms Intel's best, what will the fanboys rally cry be next?

    That's perfectly fair. Let's use the best compiler for each machine. I've no problem with it.

    Now, to ensure a completely fair test, let's make sure Apple uses both machines as they ship, and everything will be fine. But the pc "fanboys" as you call them were right to criticize a test in which Apple modified the machines, both their own and Dell's, fom the way they shipped. The changes it made to the Apple were beneficial, the ones to the Dell were all detrimental. That's not science.

    I honestly like Apples, this is just a matter of scientific method to me. I really could give a shit who wins.

    --

    -Looking for a job as a materials chemist or multivariat

    1. Re:Let's be objective by stingerman101 · · Score: 5, Informative

      Do your homework. Apple modified the tests to reflect the actual shipping models, since they were running on prototype G5's. These issues have long been put to rest and Apple just updated their results the other day with actual shipping G5's. Get out of denial, x8 is not a religion, it's a processor for goodness sake.

    2. Re:Let's be objective by larkost · · Score: 2, Informative

      Actually Adobe tends to try and drive right down the center of the road, ignoring anything on either side. They have ignored a lot of the printing advantages in MacOS X, and put in only stubs of support for AppleScript and VBScript.

      The only place where they have focused on one platform or the other have been in filters (arguably where the real heavy lifting is). They have made altivec enablers, and to a lesser extent MMX filters (I am referring to this as a family.. not the specific implementation).

      It is true that Altivec has given a bigger boost than the MMX family, but this is simply due to the quality of the Altivec units. Intel actually paid for a 2bit gausian blur filter for MMX for demo purposes. If you stuck with exactly a 2 bit blur (not real common) you got a great result on the Pentium, but off that magic number the PPC (604 at the time) won.

      Executive summary: Photoshop with a broad array of filters/actions is about as good a general test as you can devise (for graphics artists).

    3. Re:Let's be objective by siskbc · · Score: 2, Insightful

      Oh, and benchmarks are not? Always take real-life performance test if they are similar to your work before benchmarks.

      Certainly - if you can tailor your benchmark to your work, by all means do so. If you use photoshop a ton, and it's faster on the mac, get a mac. But what we're talking about are public benchmarks, applicable very generally to people who supposedly don't have uniform work habits or environments.

      Given that, about the fairest comparison is taking a whole lot of different code examples, compiling on both machines, and running it. Is it a perfect indicator? No, and no one's saying it is. But it's the best you can do without attempting to artificially favor one or the other. If everyone picks their own benchmarks, everyone gets different results.

      Benchmarks are only a substitute for real-life test, not better than.

      Couldn't agree more.

      --

      -Looking for a job as a materials chemist or multivariat

    4. Re:Let's be objective by siskbc · · Score: 2, Insightful
      The only place where they have focused on one platform or the other have been in filters (arguably where the real heavy lifting is).

      That's what I thought, and indeed, that's where you need the G5. I can draw circles on an old PPC. ;)

      It is true that Altivec has given a bigger boost than the MMX family, but this is simply due to the quality of the Altivec units. Intel actually paid for a 2bit gausian blur filter for MMX for demo purposes. If you stuck with exactly a 2 bit blur (not real common) you got a great result on the Pentium, but off that magic number the PPC (604 at the time) won.

      I'd say that's cyclical. Apple's always had great support among the design community. They'd be retarded to let Intel usurp that. So I'd say that designers/Apple have a mutually beneficial situation - you buy exclusively our stuff, and we'll design our chip to do cool stuff for you.

      Executive summary: Photoshop with a broad array of filters/actions is about as good a general test as you can devise (for graphics artists).

      I think we'd all agree that if the world consisted of graphic artists, intel would go out of business. But, for instance, I'm a chemist, so I could care less about filters and such. And as above, apple's simply worked harder specifically to woo artists and such. Intel doesn't - so I'm not surprised in the least that the mac might win.

      Put it this way - why is the general mac community against using a non-graphics, non-adobe product as a "real-world" benchmark?

      --

      -Looking for a job as a materials chemist or multivariat

    5. Re:Let's be objective by Lars+T. · · Score: 4, Funny

      IOW, the PC fanboys are just going to claim that SPEC was "developed natively for the mac".

      --

      Lars T.

      To the guy who modded me down from perfect to terrible Karma - Apple haters still suck

    6. Re:Let's be objective by Hawthorne01 · · Score: 2, Informative
      And their modifications to the Dell? Since they got it as it shipped, and they modified it, they didn't test it as it shipped.

      Yep. They modified. For better performance on their tests, while the same is not true of the G5. They made that as stock as possible.

      Apple did all they could to make the test even, from using the came compiler to making the G5 match shipping units to insuring the Dell box had all the speed tweaks it could. And it *still* lost.

      Get over it. x86 hasn't always been the reigning speed champ.

      --
      "Only two things are infinite, the universe and human stupidity, and I'm not sure about the former."
  26. Re:So much for open source at IBM by Chibi+Merrow · · Score: 2, Insightful

    Hmm... Maybe because this compiler is something they plan to sell (from what I can tell it's a closed source binary-only download) and return a profit on.

    If you really think that all IBM has contributed is some legacy drivers to Linux, I'm guessing you're either out of touch or I've severely misunderstood IBM's involvement. Look at the SCO lawsuit for a good example of many of the IBM developed/owned technologies that are now available as GPL in the kernel.

    I think that it comes down to is they didn't use gcc because they weren't looking for some massive slow cross compiler to modify to fit their needs, they (as the makers of the hardware) wanted a package that was built from the ground up to build the best code it can for their architecture. It would seem almost impossible to make gcc as good on any one architecture as an architecture specific compiler written by the architecture's creator. If I want a high performance sportscar I don't start with a station wagon as a base (well, unless I have my own show on TNN) and modify it. I build it from the ground up.

    --
    Maxim: People cannot follow directions.
    Increases in truth directly with the length of time spent explaining them
  27. Interesting, but... by Doktor+Memory · · Score: 4, Interesting

    I wonder how the AltiVec support in XLC for OSX compares to that in GCC?

    This is actually really important. One of the big reasons that the Intel C compiler spanks every other available x86 compiler is that its SSE/SIMD support is, in the words of one of my assembly-programmer friends, "awe-inspiring." Like, unrolling entire program loops and replacing them with single SIMD instructions.

    As far as I know, pretty much all of the AltiVec/VMX support in GCC was contributed by Apple and Motorola, and prior to the ppc970, IBM has never produced a PPC CPU with AltiVec instructions, so prior versions of XLC have never had to support it. So I'll be really curious to hear how it stacks up against GCC's Altivec.

    --

    News for Nerds. Stuff that Matters? Like hell.

    1. Re:Interesting, but... by sockit2me9000 · · Score: 4, Informative

      I read that there is a fairly large difference between the size of a gcc compiled instruction set (100k) and the XLC compiled instruction set of the same origin (700k). Presumably they are doing some pretty impressive unrolling and inlining. I got that at this dicussion here .

    2. Re:Interesting, but... by WasterDave · · Score: 3, Insightful

      the Intel C compiler spanks every other available x86 compiler

      It used to, but it's a close call these days.

      SSE/SIMD support is, in the words of one of my assembly-programmer friends, "awe-inspiring."

      No it's not, it's fucking awful. Sure, the hype is good, the docs (which are actually very good) show a loop being unrolled to some SIMD instructions, including a little cleanup at the end in scalar instructions. You code it up, it goes ... you point it at some real code, nothing happens. Why is this?

      It's not magic, that's why. You put an exit condition in the loop, you break vectorising. If everything isn't lined up on nice 16 (?) byte boundaries, you break vectorising. Once you've gone through making sure all the conditions are met you realise that it's easier just to use the intrinsics in the first place.

      Intrinsics, BTW, are very cool and much easier to code than you would have thought. GCC has them too :)

      Dave

      --
      I write a blog now, you should be afraid.
    3. Re:Interesting, but... by Doktor+Memory · · Score: 3, Informative
      I thought AltiVec was just one of Apple's trademarked buzzwords.
      Sigh. Sure, Apple created a trademark to describe absolutely nothing! What brilliant marketing on their part!

      No.

      AltiVec isn't Apple's trademark at all. AltiVec is Motorola's trademark for the VMX (Vector Multimedia eXtension) extension to the PowerPC instruction set, which is the PPC world's version of Intel's SSE and SSE2 instructions.

      Apple's trademark for the VMX instructions is "Velocity Engine".

      No matter what name you use for it, the name refers to something very real: a large section of the CPU die that is dedicated to processing vector math.
      --

      News for Nerds. Stuff that Matters? Like hell.

    4. Re:Interesting, but... by PCM2 · · Score: 2, Interesting
      I wonder how the AltiVec support in XLC for OSX compares to that in GCC?
      My understanding was that GCC did little to nothing in the way of AltiVec optimization of "straight" C code. You have to write the AltiVec instructions yourself. The cool thing about AltiVec is that you don't have to write the vector code in assembly, you can do it in C. But still, it's not like you can (for example) flip on the AltiVec support in GCC, compile LAME, and have an AltiVec-enabled MP3 encoder. Somebody still has to come along and port the code to AltiVec (please, please)...
      --
      Breakfast served all day!
  28. Re:So much for open source at IBM by Tal+Cohen · · Score: 4, Interesting

    (Disclaimer: I used to work for IBM Research. This is not inside info.)

    The XL line of compilers has a long and glorious tradition. What matters most here is compatibility with existing code. IBM doesn't optimize XLC so you could get a faster kernel, it optimizes XLC so they could recompile DB/2 on AIX and get faster results; and also, obviously, for many of their other products. Another consideration is those clients that have a large codebase used with XLC.

    The world of C/C++ is rather sad in that code is not only non-cross-platform in most cases, it is also commonly unlikely to compile using a different compiler on the same platform. Moving from XLC to gcc would mean throwing away an investment of decades in the compiler, not to mention the huge amount of work required to port the source code of products such as DB/2. So IBM helps gcc, and also invests in XLC. There's no conflict here. I would not be surprised if many of the various optimizations employed by XLC will eventually find their way to gcc -- by the very same IBM researchers.

    BTW, talking of optimizations, people in IBM Haifa have developed an amazing post-compile optimization tool

    . Now, seeing an open-source version of that would be cool. Not very likely, though, since this is the source for some of the performance edge DB/2 has over its competitors.
    --
    - Tal Cohen
  29. Re:So much for open source at IBM by Daniel+Boisvert · · Score: 5, Informative

    If the parent or grandparent had glanced at the PDF, they too would have noticed that GCC compatibility was one of the major points covered. There are a few pages devoted to what currently is compatible with GCC as well as what's planned. My bet is that they've had their own optimized compiler around since they first fab-ed one of these, to use for test purposes.

    It would be foolish to scrap all of the work they'd already done, as well as the performance achieved (double the performance of GCC in some cases, from the PDF). There is mention of this compiler supporting SuSe Enterprise Edition however, but not enough detail to tell if it can compile SuSe or just compile *on* SuSe.

    If there is a plan to integrate stuff from this compiler into GCC, my guess is that GCC compatibility would be the first step. It would be very difficult to try to integrate the two if they have fundamentally different structures and no common ground to speak of, not to mention that fact that chip manufacturers invariably keep the true capabilities of their hardware more or less secret until launch time, and putting code into GCC from the beginning may tip their hand to others before they're ready to do so.

    obDisclaimer: IANACompilerGuru

  30. Re:So much for open source at IBM by p3d0 · · Score: 4, Interesting
    And is there a particular reason why IBM couldn't apply their work towards gcc? So much for the whole open-source, contribute-to-the-community philosophy.
    Oh please. It's not like there's only one compiler team in IBM. IBM is contributing big time to gcc, and they also maintain their own compiler for customers who want that. IBM, like any smart company, hedges its bets, so they work on multiple overlapping projects. Do you expect them to bet the company on technology they don't control? The kind of reactionary thinking that would have them switch all their manpower to gcc is exactly what kills a lot of less prudent companies.

    Plus, the team working on this compiler would probably take several man-decades---if ever---to become as fluent and comfortable with gcc as they are with their own code.

    (Disclaimer: I work for IBM. In fact, I work on a compiler for IBM, though it's neither this compiler nor gcc. My opinions don't reflect those of IBM.)

    --
    Patrick Doyle
    I mod down every jackass who puts his moderation policy in his sig. Oh, wait a sec....
  31. Re:Why? by stratjakt · · Score: 2, Funny

    Running WHAT in the real world?

    So you can compare Photoshop on the mac to Oracle database transactions on the x86 box?

    Why not something useful like comparing my gameboy to my cell phone?

    --
    I don't need no instructions to know how to rock!!!!
  32. Re:A Discussion over at Ars... by sockit2me9000 · · Score: 3, Informative
    Damn. Here's the link.

    I'll hit preview this time instead of just blindly clicking. Sorry bout that.

  33. Re:why don't they just improve gcc? by Mooncaller · · Score: 2, Informative

    Becaus the PPC architectur can not be properly mapped onto the GCC processor model. The changes needed in GCC are greater then the GCC team is willing to make, i.e. they feel that the will have a negative impact on the goal of GCC to be crossplatform. IBM is working with the GCC guys on improving GCCs capabilities on the PPC.

  34. Re:why don't they just improve gcc? by FroMan · · Score: 3, Funny

    I wonder why folks modded you insightful here. The cynic in me says they missed the sarcasm you laid down pretty thick and thought they should really get laptops for free.

    --
    Norris/Palin 2012
    Fact: We deserve leaders who can kick your ass and field dress your carcass.
  35. A Question by 1000StonedMonkeys · · Score: 5, Funny

    Is the word "fanboy" used by anyone but fanboys?

  36. Re:can it compile the kernel? by Doktor+Memory · · Score: 4, Insightful

    Eh, I wouldn't say that GCC is "worthless", it's just that its worth lies in an area that has nothing to do with high-performance computing. Or even mid-performance computing. :)

    GCC's primary virtue is that it exists. For practically every computing platform on the planet, there's a famliar, stable toolchain that produces repeatable results. You can't optimize a program that doesn't exist in the first place, and GCC is the tool that's allowed many if not most of the programs we use on a daily basis to exist. There's value in that.

    --

    News for Nerds. Stuff that Matters? Like hell.

  37. Re:So much for open source at IBM by Wesley+Felter · · Score: 2, Interesting

    FDPR is much more advanced that GNU Rope; it actually optimizes the code in addition to reordering it.

  38. Re:G5 upgrade woes by kerry-buckley · · Score: 5, Funny
    My 486/66 with 8 megs of ram that has the SoBig and Blaster virus runs faster than this G5 dual 2GHz machine at times.
    But I bet whoever sold you the Quadra tower sprayed silver and with "G5" written on it in crayon is laughing.
  39. I can definitely believe it by TheTranceFan · · Score: 5, Interesting
    I personally ported Macintosh Adobe Premiere 4.0 from 68000 to PowerPC. This was right when the PowerPC-based Macs were introduced (before, actually, since Apple was providing us with prerelease product). At that time, Apple's internal C compiler (then MrC) wasn't ready for primetime, nor was ThinkC. We'd been using MPW for the development, but the only good compiler for PowerPC was IBM's compiler. So I edited/built/linked the whole thing over the network on an RS/6000(?) somewhere at Adobe. I remember when I turned the optimizer on, Premiere got twice as fast, just like that.

    The IBM compiler dis some wild instruction reordering which made the optimized compiled code really hard to understand, but somehow better fitted to the processor's pipeline structure. Fortunately the only thing that broke when I turned on the optimizer was the "marching ants" used for selection, and that was the result of some way-too-fancy-casting of Pattern pointers that fooled the optimizer. I suspect the IBM compilers will continue to reign if performance is the goal.

  40. Re:why don't they just improve gcc? by WatertonMan · · Score: 2, Interesting
    In addition to the many other answers about why there is an xlc rather than an updated gcc, let me offer a few others. One is that xlc allows IBM to keep its technology internal. No viral open source license. Further even Apple's gcc isn't your mother's gcc. They have their own fork because some of their changes weren't accepted.

    One must also point out the obvious that simply adding to someone else's code isn't always possible. You can't always just pick and choose like that. If you've never had to "fix" someone else's code you may not realize this. There are all sorts of different design decisions. That xlc basically is command line compatible with gcc is all I need.

    Here's the real question. Will Apple move Project Builder away from gcc to xlc. I just downloaded it and haven't tried it, but I wonder if one could alias gcc to xlc.

    BTW - to someone who knows. Is xlc compatible with gdb? I'd assume so, but wonder if anyone there knows for sure.

  41. Re:Got something to back that up? by finkployd · · Score: 4, Insightful

    No, I don't mean scientific computing. I mean high performance computing. SP clusters, Linux clusters, weather modeling, the stuff that large universities do. No offense but where I am we run significantly larger clusters than SARA has ever seen.

    GCC is a great compiler, I use it daily. Better than Intel and IBM for performance (expecially FORTRAN) it is NOT. It was designed as a cross compiler and in that it shines. But it is not all things to all people.

    I certainly did not flame GCC and all the people who work on it, come back down off your high horse. All I did was list some reasons why IBM may not have used GCC, one of which is that most of the HPC people I know and work with have tested it and found it to be unacceptable for what they do.

    That said, I certainly can see a day when GCC IS the best performing compiler, hands down. I believe open source will eventually overtake most commercial applications due to the momentium it currently has. However it would be silly of me to say that MySQL is better than Oracle, when it clearly is not (yet).

    Finkployd

  42. Re:G5 upgrade woes by WatertonMan · · Score: 2, Interesting
    No, this is a valid concern. The Finder is the achilles heel of the Macintosh. I can only say that the Finder has been completely rewritten in Panther. Word on the street is that Panther may be out late in September or early in October. (Who knows if that is true. The word on the street for the past two months has been a new 15" Powerbook as well)

    Anyways, back to your problem. If you copy with the shell or with any other file manager on the Mac it will be considerably faster.

    As for Adobe Acrobat, I don't know what is wrong there. I installed it in just a few minutes without any problems.

    However I must ask if you are for real. Sorry but just today have reports of dual G5's come out. That you "recently upgraded" sounds a bit doubtful. I don't know anyone with a dual G5. That you say your iPod stopped working and Safari isn't working during a copy makes me think either you have a flawed pre-release machine or are just blowing air. My apologies if you are legit. Just doesn't sound right.

  43. Re:can it compile the kernel? by Doktor+Memory · · Score: 2, Interesting

    Very often, that "native" compiler either doesn't exist (because even the vendor is using gcc), or is prohibitively expensive for a startup company.

    It's best to approach GCC like Java: use it to prove the correctness of your app, then profile profile profile and insert inlined assembly into your bottleneck points. Remember your Brooks: 90% of all optimization is premature.

    --

    News for Nerds. Stuff that Matters? Like hell.

  44. Re:So much for open source at IBM by nettdata · · Score: 2, Insightful

    And is there a particular reason why IBM couldn't apply their work towards gcc? So much for the whole open-source, contribute-to-the-community philosophy.

    Maybe because, oh, they didn't want to? Just because a company participates in Open Source projects doesn't mean that they have to participate ONLY in OS projects. In this case, they built a chip, then they built a compiler for that chip, and have freely distributed it. I, for one, think that's pretty nice of them. After all, there's NOTHING stopping you from using GCC instead of the new compiler. Your choice. Just like THEY made a choice. See how that works?

    I'm personally rather tired of companies which consider "contributing to the open-source community" to be "lets send in drivers for our proprietary hardware which only we will ever need." That's NOT contributing to the community, that's getting your foot into the kernel.

    If I have an older (or newer) IBM box that I've picked up, and I want to run some Open Source operating system on it, like Linux, I'm DAMN HAPPY that IBM contributed the stuff to the kernel that lets it run on the piece of hardware that I want it to. That is a GOOD THING(TM) in my opinion, as they have provided me with ANOTHER CHOICE. It means that they more than likely didn't have to guess how to do the drivers for it, and it's more than likely in their vested interest to keep it up to date.

    Sure, it may help them make money on hardware purchases, etc., but this is beside the point.

    Where is it written that people are only allowed to make contributions if they can't or don't make money off of it? At the end of the day, the community benefits from the submission, and they benefit from some sales. This is another GOOD THING(TM) because maybe it will help to show other companies that there is a reason to contribute other than trying to build up the karma points.

    But hey, what do I know... I only live in the real world.

    --



    $0.02 (CDN)
  45. The speed could be infinite. by Aqua+OS+X · · Score: 4, Funny

    The speed could be infinite. IBMs new complier is powered by rainbows, dreams, wishes, magic gumdrop sprinkles, and imagination. Theoretically speaking, you could bypass the rainbows, dreams, and wishes; while using a wrapper to off-load the burden of the magic gumdrop sprinkles to the flux capacitor. Then you could primarily focus your development on imagination... which would allow you to compile and run applications at a speed predetermined by your imagination.

    I've also heard that the wishes and dreams can be fairly powerful tools as well. However, results may vary due to unfulfilled wishes and crushed dreams.

    --
    "Things are more moderner than before- bigger, and yet smaller- it's computers-- San Dimas High School football RULES!"
  46. poor compromise by nverse · · Score: 2, Funny

    The problem is that the increase in execution speed is matched by a corresponding inflation of Steve Job's ego.

  47. bad benchmarks by penguin7of9 · · Score: 2, Interesting

    IBM's benchmarks comparing gcc and xlc on SPECint2000 and SPECfp2000 seem not very meaningful to me. First of all, note that both -O2 and -O3 are semantics preserving in gcc, while -O4 and -O5 in xlc are not. That is, in particular on the SPECint2000 benchmarks, the xlc compiler is faster simply because it changes the behavior of your program. The same may even be true for xlc compiling SPECfp2000 at lower optimization settings; the Intel compiler on P4, for example, achieves large gains in performance on some benchmarks by inlining math functions that gcc uses a library for--because the P4 instructions aren't quite right.

    In my experience, you can usually match the performance of those other "fast" compilers with gcc by using the "-f" and "-m" flags. The main difference is that gcc forces you to be explicit about which semantic changes the compiler is allowed to make, rather than lumping things together under some generic "-O5" setting. That's a good thing.

    (Note that my comments apply to gcc; g77 may well be a much worse performer than commercial Fortran compilers even though it shares the same back-end with gcc. That affects the SPECfp2000 scores. Fortran just doesn't seem to be a high priority for gcc.)

    1. Re:bad benchmarks by penguin7of9 · · Score: 3, Informative

      If you knew about the SPECcpu2000 suite, you'd know that every program comes with a corresponding "correct" output file against which the output must be checked. To report a SPEC result, the output has to WORK.

      Yes, and the output probably would work, too, if you enabled the same optimizations in gcc. That doesn't make the optimizations "semantics preserving".

      For example, gcc doesn't use x86 transcendental instructions by default because they give wrong results for large arguments. Most programs never encounter that case for most input data, but the program has different semantics and the optimization is not semantics preserving. The fact that those changes only show up under rare circumstances makes the problem worse.

      May I humbly suggested that you stop using the word 'semantics', at least if you don't know the meaning of the word, which you don't seem to.

      Yes, you should be quite humble because you erroneously think that "I ran the program and it gave the same answer" means that the compiler compiled it correctly.

  48. g4 logo for g5 stories? by zhevek · · Score: 2, Funny

    Anyone else find it ironic that all the recent g5 stories are labeled with the picture of the g4 chip? =)

  49. Re:Can Apple use this compiler? by fpillet · · Score: 2, Informative

    Yes Apple does use XCode for Mac OS X development. It was using Project Builder before. In fact, most of the complexity / power in XCode stems from the fact that Apple itself uses it for complex project. Not bad to have them eat their own dog food...

    Also, note that the XLC compiler doesn't support Objective-C. Therefore, only the C/C++ portions of Mac OS X can benefit from the optimized compiler...

  50. Actually you could use it for ObjC today. by Paradox · · Score: 3, Insightful

    Interesting to note that Objective C is much closer to raw C than C++, and as such yes. You can do some stuff with it that's worthwhile.

    Also note that David Stes released his POC, which is an Objective-C->C compiler with a runtime he uses (actually it's a bit more than Objective-C) to run ObjC code today.

    Apple will probably use this new compiler to recompile their CoreFoundation stuff, which is all C stuff that Carbon and Cocoa tap into. So, a simple recompile of CoreFoundation should net good speed improvements on G4s and MUCH better results on a G5.

    So even if IBM chooses not to directly support Objective-C, Apple can still benefit in the short term while they rustle up their very own ObjC->C system (which is NOT a very challenging feat, considering the ObjC runtime is a relatively simple-to-use C library).

    --
    Slashdot. It's Not For Common Sense
  51. Can Apple take advantage of this? by Bun · · Score: 2, Informative

    IIRC, Apple compiles OS X on gcc 3. Would it take a lot of work for them to use the new IBM compiler and therefore take better advantage of the G5? Are there too many differences are between gcc and XLC to allow the open source community to continue to work on Darwin, while Apple uses XLC for performance?

    --
    "Anyone that has ever gotten an idea based on any of my work and done something better with it-good for you."--J.Carmack
  52. Speed is Irrelevant by gbulmash · · Score: 4, Informative
    We can talk specs all you want, but most multimedia pros who are running OsX or Windows have invested more in software than hardware. And that's where all the talk of speed breaks down.

    If I go from Mac to Intel, or vice versa, and I'm not the type to pirate everything from friends, warez sources, or p2p, then I have to buy (prices from Amazon.com, rounded to nearest dollar)...

    • Ms Office Standard (Win: 347 / Mac: 357)
    • Photoshop (Win: 580 / Mac: 590)
    • Illustrator (Win: 390 / Mac: 403)
    • Premiere 6.5 (Win: 540 / Mac: 533)

    So the cost to switch is:

    To Mac from Win: hardware + 1883 software
    To Win from Mac: hardware + 1857 software

    And that's just the basics for a good multimedia development set-up. If you code, create Flash/Shockwave, etc., then you can add on another $500-1000 for other tools... or more.

    Bundles and other incentives can bring it down, but this is not an inconsequential cost. Even if you could get a 10% faster PC for the same price as a Mac, or a 10% faster Mac for the same price as a PC, you have to ask yourself how much that 10% is really worth to you.

    How often will you utilize all the capabilities of the machine and stretch the system past the capabilities of the alternative? How many hours of labor will the system save you over time?

    And when all is said and done, you can scream over benchmarks and which is the better OS all you like. But they're totally meaningless.

    (Mac fans can claim Windows has an inherently higher TCO, but let's face it, that's if the user is someone who thinks GNU is a Milton Bradley game that succeeded Gnip-Gnop. The rest of us know that a well-educated Windows user can avoid many of its pitfalls.)

    Each time I've upgraded my hardware, there's one question I ask when I consider whether to switch platforms... What's the bottom line? How much more would this cost or save?

    When I worked it out in 1993, a 486 DX2/50 by mail-order beat an education priced Quadra 40 from the university. Since then, I've invested much more in software that I had as a student... Even though the hardware costs are becoming less of a factor, the software costs have become more of a factor to compensate.

    If I won the lottery, I'd buy a Mac and all the cool software I wanted. But barring that, I'll be looking carefully at Prescott versus Athlon 64 in the coming months, and making my choice in the Wintel world because that's where my software is.

    So, though this compiler news is cool if you're a Mac User, because it makes your platform better *for you*, the arguments about whether Mac beats WinTel are a lot of sound and fury, signifying nothing.

    1. Re:Speed is Irrelevant by noewun · · Score: 2, Insightful
      most multimedia pros who are running . . . Windows

      Both those guys must be pissed!

      I know, I know, but I couldn't resist. . .

      How often will you utilize all the capabilities of the machine and stretch the system past the capabilities of the alternative?
      If you are doing serious Photoshop or After Effects work, all the time. No matter how fast the newest machine is, there's an art director out there with a layout which will make the machine choke.
      --
      I am a believer of momentum and curves.
  53. Single P4 versus DUAL G5's by Nazmun · · Score: 2, Insightful

    The Pentium scores you listed are from Pentium CPU's (not the xeons which did slightly higher) which are incapable of dual cpu operation. This was against a dual cpu system that was probably optimized well for dual use.

    Whats interesting to note that the single pentium machine scored 836 in int performance and the xeons (dual machines) scored 840... Almost no performance increase from going dual here.

    --
    Hmmm... Pie...
    1. Re:Single P4 versus DUAL G5's by Nazmun · · Score: 2

      Oops it looks like I misskimed the article on theinquirer, sorry about that.

      --
      Hmmm... Pie...
  54. xCode? CodeWarrior? by MacGod · · Score: 2, Interesting

    What I wonder is whether this compiler will be used in future versions of xCode. If it is, in fact, significantly faster than GCC, it seems logical that Apple would wants it as part of their own developer tools.

    In addition, I wonder what this will do for Metroworks' CodeWarrior compiler?

    --
    "Reality is merely an illusion, albeit a very persistent one " -Albert Einstein
  55. Typical Slashdot reactions by epepke · · Score: 2, Funny


    Event: Somebody actually does something realted to some Apple product.
    Slashdot reaction: Unless it comes in GCC today and fixes me a martini and picks my nose and sings the Hallelujah chorus and comes with a big check, what damn good is it, anyway?

    Event: Somebody at Microsoft says that they might do something in a couple of years if they feel like it.
    Slashdot reaction: Hah! Luser! See, Microsoft already did it.

    Event: Somebody decides that it might be possible to do something cool if they could only get cheap enough buckytubes to wire the brains of ants to the FPU in Python emulated in Perl emulated in ELisp. And it will run on Linux. Except nobody is going to do it, really, but it would be cool.
    Slashdot reaction: Linux is ready for the desktop! Linux is ready for the desktop!

  56. Here is a link to the fortran compiler xlf by mzs · · Score: 2, Informative
    Fortran Downloads

    BTW, rename the files to vacpp.60.macos.beta.dmg (C/C++ toolkit) and xlf.81.macos.beta.dmg (fortran) if your browser does not handle the ftp redirect well. If LaunchServices opens the file with the wrong application when you double click on the disk image, drag the file onto the Disk Copy icon in Applications:Utilities instead.

  57. Instructions for running SPEC by coolmacdude · · Score: 2, Informative

    If anyone would like to take the initiative and has access to a G5, IBM offers these instructions for running SPEC2000 on a G5 using the optimized Fortran compiler.

    --

    -You may license this sig for only $6.99.
  58. oh sweet jesus by klez23 · · Score: 4, Insightful

    Can't we talk about Macs on Slashdot without having to talk about whether they're overpriced or slow or whatever? I have a Mac, I like it, I use it for lots of things. I'd like to be able to discuss it, rather than just read x86 users' posts about how much better their platform is & why. This article is about a complier, not comparison shopping. Could we stick to that please??

  59. Re:You didn't even comprehend the post, eh? by cbreaker · · Score: 2, Insightful

    It seems to me that this special super-duper compiler wouldn't benefit any other CPU's since it's designed to make code that the processor executes the most effeciently.

    Open sourcing a compiler for a CPU wouldn't automatically make the Xeon compiler any better. It would make gcc compile for that processor better.

    Either way.. where's my super-duper Athlon and Athlon64 compilers!!

    --
    - It's not the Macs I hate. It's Digg users. -
  60. Gcc still a great compiler by HuguesT · · Score: 2, Insightful

    Looking at all these pretty graphs, and knowing that in most cases sane people will restrict their optimization to -O2 (-O3 and above are usually unsafe: not as well tested, may change the program behaviour, cut corners with IEEE math, etc), GCC is still looking pretty good.

    In most cases in both FP and Integer, GCC matches XLC up to -O3, sometimes a bit slower, sometimes a bit faster.

    I applaud the work of the GCC people. GCC is the most versatile and portable C compiler, and it's not half bad at optimizing either.

    Thanks too to IBM. Their compiler will surely prove useful in a lot of cases, and a new compiler to try and benchmark is always good news!

  61. Re:How is Apple's G5 going to run older G4 apps? by stingerman101 · · Score: 3, Informative

    All the PowerPC processors are binary compatible. Even the Power series from the Power2 forward to the Power5. The beauty of the PPC architecture, is that the physical implementation can be radically different, but the instruction set remains the same. (For the most part, the PowerPC ISA is still revised to it keep modern.)

    What is different is the performance you may get when targeting a processor. The compiler can optimize your code to a particular processors physical implementation. For example, code compiled for the G5 will be structured to work better knowing how the G5 processes instructions down its pipeline, how it makes its decisions, caching, etc. But the 32-bit code will still work on a G4 albeit at a slower rate.

    IBM is in the best position to understand the physical design of the G5 and thus they can make sure that when compiling code, the compiler chooses and structures the instructions that will run optimally for it. In addition, IBM is pretty advanced in developing optimization techniques and they bring a lot of intellectual property to the table. All this makes for some pretty serious optimizations that rival anything a more generalized compiler may be able to do.

    What this means is that the Mac developer has another weapon in his arsenal for conquering performance issues. Consider it a free upgrade for your processor, the results are showing significant improvements that will work there way into OS X and performance sensitive Apps.