C++ User's Guide

Code Generation Options

The following code generation options are listed in alphabetical order.

Action 

Option 

Details  

Sets the major release compatibility mode of the compiler. 

-compat

"-compat[=(4|5)]"

Does not expand C++ inline functions. 

+d

"+d"

Controls virtual table generation. 

+e(0|1)

"+e(0|1)"

Compiles for use with the debugger. 

-g

"-g"

Produces position-independent code. 

-KPIC

" -KPIC "

Produces position-independent code. 

-Kpic

"-Kpic "

Compiles and links for multithreaded code. 

-mt

"-mt"

Specifies the code address space. 

-xcode=a

"-xcode=a"

Merges the data segment with the text segment. 

-xMerge

"-xMerge"