Optimization of gfortran for execution speed

Dominique Dhumieres dominiq@lps.ens.fr
Thu Oct 20 20:40:00 GMT 2005


> ...
> - don't forget to check that you don't break stuff like
>    a(1:N-1) = a(2:N)
> ...

That's the easy case without dependency, the dangerous one
is a(2:N) = a(1:N-1) that should be scalarized as
a(N:2:-1) = a(N-1:1:-1) (I hope it's correct).

Dominique



More information about the Fortran mailing list