translating intel fortran flags to gfortran
Tobias Burnus
burnus@net-b.de
Mon Nov 14 19:04:00 GMT 2011
Tom Roche wrote:
> I'm recompiling code with gfortran that has previously been done (and
> is almost entirely documented) using ifc. I have a general question
> and a specific one:
>
> * Are there useful references for translating ifc flags to gfortran,
> e.g., a guide to porting?
Not really. Looking at both the ifc/ifort documentation and at the
gfortran [1] and gcc [2] documentation seems to be the only way.
> * What would be the gfortran equivalent of
>
>> -extend_source 132 -cm -w95 -c
For "-c" use "-c". For "-extend_source 132" use -ffixed-line-length-132.
-w95 and -cm seem to be warning related. You might simply leave them out
(and ignore the warnings). Or use GCC's "-w" to disable all warnings.
There might be other flags needed such as -std=legacy, depending which
compile-time errors you get.
Tobias
[1] gfortran: Fortran related flags, see
http://gcc.gnu.org/onlinedocs/gfortran/Invoking-GNU-Fortran.html
[2] gcc: General optimization- or processor-related flags, see
http://gcc.gnu.org/onlinedocs/gcc/Invoking-GCC.html
More information about the Fortran
mailing list