Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×
Technology

Application Optimization with Compilers for LOP 20

An anonymous reader writes "Interested in tuning your C/C++ applications for Linux on POWER? This article compares the optimization options for both Linux on POWER C/C++ compilers: GCC and IBM XL C/C++. This paper also reviews tactics, such as Interprocedural Analysis, Profile Directed Feedback, and High Order Transformations, which are used by one or both of the compilers to extract higher performance from the Power architecture."
This discussion has been archived. No new comments can be posted.

Application Optimization with Compilers for LOP

Comments Filter:
  • Power PC rocks !! (Score:4, Informative)

    by Gopal.V ( 532678 ) on Monday May 23, 2005 @09:08AM (#12611150) Homepage Journal
    PowerPC CPU is a cool design - not only does it deliver great performance at lower clock speeds, but the entire design is great for compiler devs .

    For one, they have true 3 register operations. Which means that every binary operation has a src1, src2, and dst. Also all opcodes are 32 bit - no exceptions (jmp offsets are easy to check for).

    Because of 32 registers (not a measly 8), most of the code can run very fast off them , especially those tight loops. Also the cache touch instructions which do not segfault for invalid addresses helps you fetch arrays before their indexes are validated.

    All in all, I prefer PPC to x86 on any day. Now if only they'd have a common FPU opcode set.
    • Re:Power PC rocks !! (Score:2, Informative)

      by keesh ( 202812 )
      Uh, you just described SPARCv9, not Power. Power opcodes come in multiple sizes.
  • by Anonymous Coward
    Look, I'm all for optimizations and compiler technology, but the example is *lame*. First it's copying gigs of memory from one array to the other in a _non-sequential_ (!) manner. I think it is safe to say that by reordering the loops you would get all the benefits of the IBM compiler. Why not use the memcpy() function then??

    I think the lesson here is not how a compiler can save you time but how you can save time by not reading the article.

I tell them to turn to the study of mathematics, for it is only there that they might escape the lusts of the flesh. -- Thomas Mann, "The Magic Mountain"

Working...