Topic: gfortran options

Hi all:

I am a new user of SimplyFortran. I am trying to improve the execution speed of my code by changing the gfortran compilation options, using:

-O3 -ffast-math -march=native -funroll-loops -fno-protect-parens -flto

in the Options-General->Compiler flags.

I also tried to change the options in the Code Generation tab.

However, the executable created is always the same size and it runs at the same speed. It seems the options have no effect.

Any suggestion?

Thanks,

Marcelino

Re: gfortran options

Marcelino,

After you change these options, make sure that you first clean your project before building.  All your source code will need to be rebuilt after changing options, and Simply Fortran doesn't automatically do this (although it probably should).

If you do Clean first and still don't see any improvement, please let us know!

Jeff Armstrong
Approximatrix, LLC

Re: gfortran options

Hi Jeff:

It worked! Thanks!

Marcelino


jeff wrote:

After you change these options, make sure that you first clean your project before building.  All your source code will need to be rebuilt after changing options, and Simply Fortran doesn't automatically do this (although it probably should).