You copied the Doc URL to your clipboard.

Workload compilation options

Configure how Fortran workloads compile.

Compiler workload compilation options

Option

Description

Usage

-Mallocatable={95 | 03 }

Select semantics for assignments to allocatables. Fortran 2003 (03) allows dynamic reallocation, which will error in Fortran 90/95 (95). Default = 03.

armflang -Mallocatable={95 | 03}

-cpp

Preprocess Fortran files.

armflang -cpp

-fbackslash

-fno-backslash

Treat backslash as C-style escape character (-fbackslash) or as a normal character (-fno-backslash).

armflang -fbackslash

(enable)

armflang -fno-backslash

(disable)

-fconvert={native | swap | big-endian little-endian}

Convert between big and little endian data format. Default = native.

armflang -fconvert={ native | swap | big -endian little-endian}

-ffixed-form

Force fixed-form format Fortran. This is default for .f and .F files, and is the inverse of -ffree-form.

armflang -ffixed-form

-ffixed-line-length ={0 | 72 | 132 | none}

Set line length in fixed-form format Fortran. Default = 72. 0 and none are equivalent and set the line length to a very large value (> 132).

armflang -ffixed-line -length={72 | 132}

-ffree-form

Force free-form format for Fortran. This is default for .f90 and .F90 files, and is the inverse of -ffixed-form.

armflang -ffree-form

-fma

Enable generation of FMA instructions.

armflang -fma

-fno-fortran-main

Don't link in Fortran main.

armflang  -fno -fortran-main

-frecursive

Allocate all local arrays on the stack, allowing thread-safe recursion.

In the absence of this flag, some large local arrays may be allocated in static memory. This reduces stack , but is not thread-safe. This flag is enabled by default when -fopenmp is given.

armflang -frecursive

-i8

Treat INTEGER and LOGICAL as INTEGER*8 and LOGICAL*8.

armflang -i8

-no-flang-libs

Do not link against Flang libraries.

armflang -no-flang-libs

-nocpp

Don't preprocess Fortran files.

armflang -nocpp

-nofma

Disable generation of FMA instructions.

armflang -nofma

-r8

Treat REAL as REAL*8.

armflang -r8

-static-flang-libs

Link using static Flang libraries.

armflang -static-flang-libs

Was this page helpful? Yes No