| |
Common Fortran Compiler Options
This table lists some common compiler
options in Cray's f90 and IBM's xlf90 Fortran 90 compilers.
| Cray f90 | IBM xlf90 | Meaning |
| File Handling Options |
| -c |
-c |
compile to .o files but do not link to build an executable |
| -o |
-o |
name executable output file |
| -S |
-S |
produce assembler source output file |
| -p |
-I |
specify directory to search for module files (.mod) |
| -I |
-I |
specify directory to search for #include files |
| -L, -l |
-L, -l |
specify directory to search for libraries |
Source File Options
| (default for free form) |
-qsuffix=f=f90 |
Use .f90 filename extension for Fortran source code files |
| (default for fixed form) | (default) | Use .f filename extension for Fortran source code files |
| -en |
-qlanglavl=90std |
warn of nonstandard language usage |
| -f free
| -k, -qfree
| expect free-form (fortran 90) source input |
-f fixed
-qfixed
| expect fixed-form (fortran 77) source input |
| |
| -N 72|80|132 |
-qfixed=72|80|132 |
specifies 72,80, or 132-column source input form |
| -eI |
-u |
specifies no implicit data typing ("implicit none") |
| Source Preprocessing |
| (default for free form) |
-qsuffix=cpp=F90 |
Invoke preprocessor first on .F90 filename
extension for Fortran source code files |
| (default for fixed form) |
(default) |
Invoke preprocessor first on .F filename
extension for Fortran source code files |
| -D identifier |
-Wf,-Didentifier |
Define variables used for source preprocessing |
| Message Output Options |
| -m4 |
-w |
suppress all compiler messages except errors |
| -r |
-qsource |
produce source code listing |
| -m{0-4} |
qflag={I,L,W,E,S,U} |
specify level of message output (in source list, for IBM) |
| -v |
-V,-v |
verbose output from compiler, showing progress of each phase |
| -Omsgs,negmsgs |
-qreport=smplist |
feedback from parallelization process |
| Runtime Checking Options |
| -Rbc |
-C |
run-time checking of array bounds |
| -Ra |
-qextchk |
argument or procedure interface checking (runtime, for f90) |
| Code Generation Options |
| -ej |
-1 |
execute all do-loops at least once (Fortran-IV compatibility) |
| -e0 |
-qinitauto |
initialize all local variables to zero |
| -eR |
-qrecur |
compile for recursive subroutine calling |
| -Oieeeconform |
-qfloat=rndsngl |
compile for IEEE-conformant arithmetic |
| Profiling Options |
| -ef |
-p, -pg |
compile with support for profiling |
| Optimization Options
|
| -O{0-3} |
-O{2-4} |
specifies optimization level |
| -g |
-g |
compile for debugging |
| -ev |
-qsave |
make all local storage static |
| -Otask{0-3} |
-qsmp=nested_par |
orders automatic parallelization optimizations |
|
|