Intel fortran to gfortran

Hi,
I’m trying to use the gfortran to compile a Makefile. However, the flag options are set for ifort compiler, yet the Makefile could be compiled with gfortran. Now I need to configure the flag options to match the gfortran. I couldn’t find the equivalents of some ifort options in gfortran. Could anyone help me in configuring the flag options? The ifort flag options are:

-fixed

-check

-fp-stack-check

-132

Thank you for any help in advance.

Reza,

1 Like

Hi @RezaRezaei,
this link can be useful:

you could also try fpm to build your program
https://fpm.fortran-lang.org/en/index.html

1 Like

Thank you for responding. Unfortunately, I couldn’t find the mentioned option in the links.

you could also compare these two lists of compile options

gfortran ifort

example:
-fixed → Specifies source files are in fixed format. ifort
-ffixed-form → Specify the layout used by the source file. gfortran

Is there a an overview of commonly used options for commonly used compilers somewhere? Might be a worthwhile community project.

2 Likes

@Sideboard

I couldn’t find such a document.

Maybe, a quick reference card that lists the common options between compilers. :thinking:

1 Like

Here is a link that people may find useful.

https://polyhedron.com/?page_id=175

I found a comparative collection of different compilers options here:

https://confluence.ecmwf.int/display/UDOC/Compilers

https://doku.lrz.de/pages/viewpage.action?pageId=43320993