Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

CRAY
FamilyLanguageCommand
GNUCgcc
C++g++
Fortran 77/90gfortran
INTEL

Cicc
C++icpc
Fortran 77/90ifortCcraycc (through cc)
C++crayCC (through CC)
Fortran 77/90crayftn (through ftn)
AMD AOCC

Cclang
C++clang++
Fortranflang
NVIDIACpgcc
C++pgCC
Fortran 77pgf77
Fortran 90pgf90

Basic flags

-c-On
GNUINTELCRAYAMDNVIDIADescription
-c-c-c-cCompile or assemble the source files, but do not link.
-o filename-o filename-o filename-o filename-o filenameName the output file filename.
-On-On-On-OnSet the optimisation level to n.

Preprocessor flags

-Dname-E-
GNUINTELCRAYAMDNVIDIADescription
-Dname-Dname-Dname-DnamePredefine name as a macro for the preprocessor.
-E-E-E-EPreprocessed source files including #line directives are output to stdout.
-I dir-I dir-I dir-I dir-I dirSpecifies an additional directory dir to search for include files.
-J dir--module-dir-module dirSave/search for module files in directory dir (Fortran only).

Precision flags


--s real64
GNUINTELCRAYAMDNVIDIADescription
-fdefault-integer-8-i8-s integer64-fdefault-integer-8-i8Specifies the default size for integer variables to be 8 bytes.
-fdefault-real-8-r8-s real64fdefault-real-8-r8Specifies the default size for real variables to be 8 bytes.
-fdefault-double-8-double-size 64-fdefault-double-8-r8Specifies the default size for double variables to be 8 bytes.

Debug flags

-g--K trap=fp---hbyteswapio 132-N
GNUINTELCRAYAMDNVIDIADescription
-g-g-g-gProduces symbolic debug information.-pg
-pg-pg-pg-pgGenerate extra code to write profile information suitable for the analysis program gprof.
-fcheck=bounds-check bounds-R bfcheck=bounds-MboundsAdd runtime array bounds checking for Fortran.
-Wuninitialized-check uninit-Wuninitialized-Check for uninitialized variables.
-ffpe-trap=zero,invalid,overflow-fpe-all=0-ffpe-trap=zero,invalid,overflow-Ktrap=fpTrap floating point exceptions:
  • divide by zero
  • invalid operands
  • floating point overflow
-fbacktrace-traceback-fbacktrace-Meh_frameAdd debug information for runtime traceback.
-fconvert=swap-convert big_endian-fconvert=swap-byteswapioSpecify the representation of data for unformatted files.
-ffree-line-length-132-extend-source 132-ffree-line-length-132-MextendAllow 132 characters source line lengths (in fixed format).