Optimizations

Lars Segerlund lars.segerlund@comsys.se
Sat May 7 11:26:00 GMT 2005


 The optimisation options for gcc is the one's that you're looking for, in addition to the usual -O1 -O2 -O3 you might also want processor specific swithces and perhaps -mfast-math.
 It's in the info docs, and also some on the gcc mailing list/archives, check the switches used when benchmarking gcc/gfortran on the SPEC benchmark suite, they should be quite ok.

 / Lars Segerlund.

On Tue, 03 May 2005 18:53:20 +0200
Lorenzo Isella <moonwatcher2001@gmail.com> wrote:

> Hi,
> I am interested in fortran90/95. 
> So far I have always been using Microsoft visual studio, but I am now
> getting into the open source world. I am toying around with the gfortran
> and testing some old .f90 files of mine.
> I am a bit puzzled as I did not find any optimization options (Did I
> overlook something?).
> Therefore I am a bit concerned about the performances of the programs I
> may compile with gfortran.
> Second, I have never used the Lapack routines, but can they be used
> without troubles/conflicts with the gfortran compiler?
> Thanks for your cooperation
> Lorenzo
> 



More information about the Fortran mailing list