Skip to navigation

Compiler Flag Equivalence

View as MarkdownOpen in Claude

The following table is an overview of some of the compiler flags that are equivalent or almost equivalent.

CrayIntelGCCExplanation
defaultdefault-O3 -ffast-mathProduce high level of optimization
-Oomp (default)-openmp-fopenmpActivate OpenMP directives and pragmas in the code
-h byteswapio-convert big_endian-fconvert=swapRead and write Fortran unformatted data files as big-endian
-f fixed-fixed-ffixed-formProcess Fortran source using fixed form specifications.
-f free-free-ffree-formProcess Fortran source using free form specifications.
-V--version--versionDump version.
-h zeroN/A-finit-local-zeroZero fill all uninitialized variables.
-e mCreates .mod files to hold Fortran90 module information for future compiles.
-j <dir_name>Specifies the directory <dir_name> to which .mod files are written when the -e m option is specified