gprof and optimization



Dear all,

I have a curious problem with my code using gprof profiler with g95 compiler : if I compile using -pg option the code run faster, iterative computations are more stable (less iterations) and results are different. The other options are -O3 -malign-double -march=pentium4m.

I don't know where I can search, compiler options, optimization, in the source code ?

Any idea ?

JBF
.



Relevant Pages

  • Re: gprof and optimization
    ... > I have a curious problem with my code using gprof profiler with g95 ... > compiler: if I compile using -pg option the code run faster, ... > iterative computations are more stable and results ... > I don't know where I can search, compiler options, optimization, in ...
    (comp.lang.fortran)
  • Re: gprof and optimization
    ... I have a curious problem with my code using gprof profiler with g95 ... compiler: if I compile using -pg option the code run faster, ... iterative computations are more stable and results ... I have done a new clean installation of g95 in MinGW directory and now all works fine, compilation with or without -pg option produces codes which give same results and consume almost the same time, pg option being very little less fast. ...
    (comp.lang.fortran)
  • g77 binaries for linux on x86 systems
    ... obtaining binaries for the new g95 compiler for linux on x86 systems. ...
    (comp.lang.fortran)
  • Re: compile fortran with
    ... have Fortran files. ... What Fortran compiler are you using? ... Also the only compiler I had interfacedwas Visual C++. ... so I just installed the G95 compiler. ...
    (comp.soft-sys.matlab)
  • Re: Module Fortran 90
    ... The g95 compiler I tried had no ... there is no way to diagnose that. ... is not declarations that are accessed from a module. ...
    (comp.lang.fortran)