-qfree

Category

Input control

Purpose

Indicates that the source code is in free source form.

Syntax

Read syntax diagramSkip visual syntax diagram
>>- -q--free--+------------+-----------------------------------><
              '-=--+-f90-+-'   
                   '-ibm-'     

@PROCESS:

@PROCESS FREE[({F90|IBM})]

Defaults

-qfree by itself specifies Fortran 90 free source form.

-qfixed=72 is the default for the xlf, xlf_r, and xlf_r7 invocation commands when they are used to compile the .f, .F, .f77, or .F77 files. -qfixed=72 is also the default for the f77 and fort77 invocation commands.

-qfree=f90 is the default for the xlf90, xlf90_r, xlf90_r7, f90, xlf95, xlf95_r, xlf95_r7, f95, xlf2003, xlf2003_r, f2003, xlf2008, xlf2008_r, and f2008 commands.

Parameters

ibm
Specifies compatibility with the free source form defined for VS FORTRAN.
f90
Specifies compatibility with the free source form defined for Fortran 90.

Note that the free source form defined for Fortran 90 also applies to Fortran 95, Fortran 2003, and Fortran 2008.

Usage

The source form specified when executing the compiler applies to all of the input files, although you can switch the form for a compilation unit by using a FREE or FIXED @PROCESS directive or for the rest of the file by using a SOURCEFORM comment directive (even inside a compilation unit).

Fortran 90 free source form is the format to use for maximum portability across compilers that support Fortran 90 and Fortran 95 features now and in the future.

IBM free source form is equivalent to the free format of the IBM® VS FORTRAN compiler, and it is intended to help port programs from the z/OS® platform.

-k is equivalent to -qfree=f90.

Related information