You copied the Doc URL to your clipboard.

Workload compilation options

Configure how Fortran workloads compile.

Compiler workload compilation options

Option

Description

-frealloc-lhs

-fno-realloc-lhs

-frealloc-lhs uses Fortran 2003 standard semantics for assignments to allocatables. An allocatable object on the left-hand side of an assignment is automatically allocated, or re-allocated, to match the dimensions of the right-hand side. This is the default behavior.

-fno-realloc-lhs uses Fortran 95 standard semantics for assignments to allocatables. The left-hand side of an allocatable assignment is assumed to be allocated with the correct dimensions. Incorrect behavior can occur if the left-hand side is not allocated with the correct dimensions.

Note

In Arm® Fortran Compiler versions 19.0 and earlier, -Mallocatable=03 was supported instead of -frealloc-lhs, and -Mallocatable=95 was supported instead of -fno-realloc-lhs.

Usage

armflang -frealloc-lhs

armflang -fno-realloc-lhs

-cpp

Preprocess Fortran files.

Usage

armflang -cpp

-fbackslash

-fno-backslash

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

Usage

armflang -fbackslash

(enable)

armflang -fno-backslash

(disable)

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

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

Usage

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.

Usage

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).

Usage

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

-ffree-form

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

Usage

armflang -ffree-form

-fma

Enable generation of FMA instructions.

Usage

armflang -fma

-fnative-atomics

-fno-native-atomics

Enable use of native atomic instructions for OpenMP atomics.

By default, armflang generates native atomic instructions for OpenMP atomic operations, falling back to libatomic when no suitable native instruction is available. Use -fno-native-atomics to disable this feature and generate code that uses barriers to guarantee atomicity. Using -fno-native-atomics usually results in a slower program.

Usage

armflang -fnative-atomics

armflang -fno-native-atomics

-fno-fortran-main

Do not link in Fortran main.

Usage

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.

Usage

armflang -frecursive

-i8

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

Usage

armflang -i8

-no-flang-libs

Do not link against Flang libraries.

Usage

armflang -no-flang-libs

-nocpp

Don't preprocess Fortran files.

Usage

armflang -nocpp

-nofma

Disable generation of FMA instructions.

Usage

armflang -nofma

-r8

Treat REAL as REAL*8.

Usage

armflang -r8

-static-flang-libs

Link using static Flang libraries.

Usage

armflang -static-flang-libs

Was this page helpful? Yes No