These options are described in alphabetical order.
Default: -ansi_alias
Enables the compiler to assume that the program adheres to the Fortran
95 Standard type aliasability rules.
For example, an object of type real cannot be accessed as an integer. For complete information on the rules for data types and data type constants, see "Data Types, Constants, and Variables" in the Language Reference.
The option directs the compiler to assume the following:
Arrays are not accessed out of arrays' bounds.
Pointers are not cast to non-pointer types and vice-versa.
References to objects of two different scalar types cannot alias. For example, an object of type integer cannot alias with an object of type real or an object of type real cannot alias with an object of type double precision.
If your program satisfies the above conditions, setting the -ansi_alias option will help the compiler optimize the program. However, if your program might not satisfy any of the above conditions, you must disable this option with -ansi_alias-, as it might cause the compiler to generate incorrect code.
Default: depends on whether -openmp is specified
Enables conditional compilation as defined by the OpenMP Fortran API. When "!$space" appears in free-form source or "!$spaces" appears in column 1 of fixed-form source, the rest of the line is accepted as a Fortran line.
If -openmp is specified, the default is -assume cc_omp; otherwise, the default is -assume nocc_omp.
Turns off all the -assume options.
Default: Off
Disables placement of zero-initialized variables in the BSS section.
By default, variables explicitly initialized with zeros are placed in the BSS section. By using this option, you can place any variables that are explicitly initialized with zeros in the DATA section if required.
There is no -bss_init option.
Default: Off
Specifies that driver tool commands should be shown but not executed. See also -v.
Default: Off
Specifies a dynamic linker (file) instead of the default.
Default: Off
Specifies that position-independent code should be generated.
Specifies full symbol preemption. Global symbol definitions as well as global symbol references get default (that is, preemptable) visibility unless explicitly specified otherwise.
See also Creating Shared Libraries.
Specifies the default visibility for global symbols (-fvisibility=keyword) or specifies the visibility for symbols that are in a file (-fvisibility-keyword=file). (This second form overrides the first form).
The keyword specifies what the visibility is set to. Visibility can be set to any of the following:
default - Other components can reference the symbol, and the symbol definition can be overridden (preempted) by a definition of the same name in another component.
extern - The symbol is treated as though it is defined in another component. It also means that the symbol can be overridden by a definition of the same name in another component.
hidden - Other components cannot directly reference the symbol. However, its address might be passed to other components indirectly.
internal - The symbol cannot be referenced outside its defining component, either directly or indirectly.
protected - Other components can reference the symbol, but it cannot be overridden by a definition of the same name in another component.
The file is the pathname of a file containing the list of symbols whose visibility you want to set. The symbols are separated by whitespace (spaces, tabs, or newlines).
Default: Off
Generates symbolic debugging information and line numbers in the object file for use by debuggers.
Displays brief information about all the command-line options.
Default: Off
Keeps the source position of inline code instead of assigning the call-site source position to inlined code.
Default: -logo (startup banner is displayed)
Displays the startup banner.
This option can be placed anywhere on the command line.
The startup banner displays the following information:
ID: unique identification number for the compiler
x.y.z: version of the compiler
years: years for which the software is copyrighted
Default: Off
Specifies that the main program is not written in Fortran. For example, if the main program is written in C and calls an Intel Fortran subprogram, specify -nofor_main when compiling the program with the ifort command. Specifying -nofor_main prevents linking for_main.o into programs. This is a link-time switch.
If you omit -nofor_main, the main program must be a Fortran program.
Default: Off
Prevents the compiler from searching in /usr/include for files specified in an INCLUDE statement.
You can specify the -Idir option along with this option. This option does not affect cpp(1) behavior, and is not related to the Fortran 95 and 90 USE statement.
Default: -nopad
Enables the changing of the variable and array memory layout.
The -pad option is effectively not different from -align when applied to structures and derived types. However, the scope of -pad is greater because it applies also to common blocks, derived types, sequence types, and structures.
Default: Off
Enables improved precision of floating-point divides. Has a slight impact on speed.
Default: Off
Enables changing of rounding mode for float-to-integer conversions, resulting in faster float-to-integer conversions.
Default: Off
Specifies that 64-bit size for long and pointer types should be assumed.
Default: Off
Specifies that arrays might be allocated on the stack, where possible, by the compiler.
Default: Off
Specifies that standard startup files should be used when linking.
There is no -startfiles option.
Default: Off
Alternate syntax: -y and -syntax
Requests that only the syntax of the source file be checked. Code generation is suppressed.
Default: Off
Instructs the linker to read link commands from file.
Default: Off
Specifies that filename should be compiled as a Fortran source file. This option is used when you have a Fortran file with a nonstandard file extension (that is, not one of .F, .FOR, or .F90).
Default: Off
Alternate syntax: -implicitnone
Specifies that the IMPLICIT NONE should be set by default. See also -warn [no]declarations.
Default: Off
Specifies that driver tool commands should be shown and executed. See also -dryrun.
Default: None.
Displays the compiler version information.
Default: Off
Prints the version strings of the Fortran command and the compiler.
Default: Off
Passes options (specified by option1, option2, and so forth) to the linker for processing.
Default: Off
Alternate syntax: -nostdinc
Removes standard directories from the include file search. This option prevents the compiler from searching the default path specified by the FPATH environment variable.
Default: Off
Passes value directly to the linker for processing.