NERSC logo National Energy Research Scientific Computing Center
  A DOE Office of Science User Facility
  at Lawrence Berkeley National Laboratory
 

Common Fortran Compiler Options

This table lists some common compiler options in IBM's xlf90 Fortran compiler.

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

LBNL Home
Page last modified: Mon, 13 Nov 2006 23:56:52 GMT
Page URL: http://www.nersc.gov/nusers/resources/software/ibm/xlf_flags.php
Web contact: webmaster@nersc.gov
Computing questions: consult@nersc.gov

Privacy and Security Notice
DOE Office of Science