Controlling Compilation Flow

Option

Description

-c

Stops the compilation process after an object file has been generated. The compiler generates an object file for each C or C++ source file or preprocessed source file. Also takes an assembler file and invokes the assembler to generate an object file.

-fp[-]
(IA-32 only)

Enables the use of the EBP register in optimizations. When you disable with -fp- the ebp register is used as frame pointer.

-Kpic, -KPIC

Generate position-independent code.

-lname

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

-nobss_init

Places variables that are initialized with zeroes in the DATA section.

-P, -F

Stops the compilation process after C or C++ source files have been preprocessed and writes the results to files named according to the compiler's default file-naming conventions.

-S

Generate assembly files with .s suffix.

-sox[-]
(Itanium(TM)-based systems only.)

Enables [disables] the saving of compiler options and version information in the executable file.

-Zp{1|2|4|8|16}

Specifies the strictest alignment constraint for structure and union types as one of the following: 1, 2, 4, 8, or 16 bytes.

-0f_check
(IA-32 only)

Avoids the incorrect decoding of certain 0f instructions for code targeted at older processors.

-fdiv_check[-]
(IA-32 only)

Enables [disables] the patch for the Intel® Pentium® processor FDIV erratum.