Miscellaneous Options

These options are described in alphabetical order.

-ansi_alias[-]

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:

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.

-assume cc_omp

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.

-assume none

Turns off all the -assume options.

-nobss_init

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.

-dryrun

Default: Off

Specifies that driver tool commands should be shown but not executed. See also -v.

-dynamic-linkerfile

Default: Off

Specifies a dynamic linker (file) instead of the default.

-fpic or -fPIC

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.

-fvisibility=keyword and -fvisibility-keyword=file

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:

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

-g

Default: Off

Generates symbolic debugging information and line numbers in the object file for use by debuggers.

-help

Displays brief information about all the command-line options.

-inline_debug_info

Default: Off

Keeps the source position of inline code instead of assigning the call-site source position to inlined code.

-[no]logo

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:

-nofor_main

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.

-noinclude

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.

-[no]pad

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.

-prec_div (IA-32 systems only)

Default: Off  

Enables improved precision of floating-point divides. Has a slight impact on speed.

-rcd (IA-32 systems only)

Default: Off

Enables changing of rounding mode for float-to-integer conversions, resulting in faster float-to-integer conversions.

-size_lp64 (Itanium®-based systems only)

Default: Off

Specifies that 64-bit size for long and pointer types should be assumed.

-[no]stack_temps

Default: Off

Specifies that arrays might be allocated on the stack, where possible, by the compiler.

-nostartfiles

Default: Off

Specifies that standard startup files should be used when linking.

There is no -startfiles option.

-syntax_only

Default: Off

Alternate syntax: -y and -syntax

Requests that only the syntax of the source file be checked. Code generation is suppressed.

-T file

Default: Off

Instructs the linker to read link commands from file.

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

-u

Default: Off

Alternate syntax: -implicitnone

Specifies that the IMPLICIT NONE should be set by default. See also -warn [no]declarations.

-v

Default: Off

Specifies that driver tool commands should be shown and executed. See also -dryrun.

-V

Default: None.

Displays the compiler version information.

-what

Default: Off

Prints the version strings of the Fortran command and the compiler.

-Wl,option1[,option2,...]

Default: Off

Passes options (specified by option1, option2, and so forth) to the linker for processing.

-X

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.

-Xlinker value

Default: Off

Passes value directly to the linker for processing.