Compiling and Linking

Option

Description

-c

Compile to object only (.o), do not link.

-C90

Link with alternate I/O library for mixed output with the C language.

-fp

Disables using ebp as general purpose register (no frame pointer).

-Kpic, -KPIC

Generate position-independent code.

-Ldir

Instructs linker to search dir for libraries.

-lname

Link with a library indicated in name. For example, -lm indicates to link with the math library.

-ml

Compile and link with non-thread-safe Fortran libraries.

-mt

Compile and link with thread-safe Fortran libraries.

-nobss_init

Disable placement of zero-initialized variables in BSS (using Data).

-p, -qp

Compile and link for function profiling with UNIX prof tool.

-posixlib

Enable linking with POSIX library.

-S
 

Produce assembly file named file.asm with optional code or source annotations. Do not link.

-sox[-]

Enable (default) or disable saving of compiler options and version in the executable.

-Tffile

Compile file as Fortran source.

-Vaxlib

Enable linking with portability library.

-Zp{n}
IA-32: -Zp4
Itanium Compiler:  
-Zp8

Specifies alignment constraint for structures on n-byte boundary (n = 1, 2, 4, 8, 16). The -Zp16 option enables you to align Fortran structures such as common blocks. Default: A-32: -Zp4, Itanium Compiler: -Zp8

IA-32 applications

-0f_check

Avoid incorrect decoding of some 0f instructions; enable the patch for the Pentium® 0f erratum

-fdiv_check
 

Enable a software patch for the Pentium® processor FDIV erratum.

-use_asm

Produces objects through the assembler.

-use_msasm

Support Microsoft style assembly language insertion using MASM format style and syntax and if requested, output assembly in MASM format.