Re: forall and do loop



On Jul 27, 2:33 pm, Tobias Burnus <bur...@xxxxxxxx> wrote:
On Jul 27, 11:55 am, highegg <high...@xxxxxxxxx> wrote:

Commercial compilers (Intel, EkoPath) even offer the possibility to
use the profiling information for subsequent optimizations, which is
potentially very powerful approach.

GCC has the same - does this make GCC a commercial compiler? ;-)

GCC has the options: -fprofile-generate and -fprofile-use.

That's cool - I didn't know.

Depending on the program, performance might be gained or lost. For the
current gfortran 4.3 and the Polyhedron test suite, seehttp://physik.fu-berlin.de/~tburnus/gcc-trunk/benchmark/#rt

As one test gets 24% slower, the few per cent gains for the other
tests average out (in the geometric mean).
(I filled a bugreport about it, #32913.)

Tobias

That's why I called it a "potentially powerful" technique, I know that
it does not always work well. Nevertheless, it seems to me that
the knowledge of where the hot spots lie may enable the compiler to do
some aggresive optimizations that would otherwise, if used everywhere
throughout the code, lead to unacceptable code bloat.
For instance, generating a separate unit-stride and non-unit-stride
code for array expressions (I'm not sure if gfortran does this).

.



Relevant Pages

  • Re: forall and do loop
    ... use the profiling information for subsequent optimizations, ... GCC has the same - does this make GCC a commercial compiler? ... Depending on the program, performance might be gained or lost. ...
    (comp.lang.fortran)
  • Re: Bye bye Keil 166 and 8051 (??)
    ... I used gcc and two different commercial ... interface bug in gcc. ... The other commercial compiler company never responded to the ...
    (comp.arch.embedded)
  • Re: Green Hills vs. Freescale CodeWarrior for ColdFire development
    ... Not bad apparently though code density and optimisation etc are another ... commercial compiler that only targets the Coldfire. ... The reason I mentioned it with respect to gcc. ... For the majority of code, on a v2 core, I would not believe any commercial compiler can repeatedly produce significantly smaller and faster code than gcc without being shown concrete examples. ...
    (comp.arch.embedded)
  • Re: Compiler Companies in Australia
    ... This should not become a flame war there is a place for GCC by ... I disagree with the claim that commercial compiler ... if you use some real benchmarks such as MiBench or the TI ...
    (comp.compilers)