C++ User's Guide

Performance Options

The following performance options are listed in alphabetical order.

Action 

Option 

Details  

Selects a combination of compilation options for optimum execution speed. 

-fast

"-fast"

Strips the symbol table out of the executable. 

-s

"-s"

Specifies target architecture instruction set. 

-xarch=a

"-xarch=a"

SPARC: Defines target cache properties for the optimizer.

-xcache=c

"-xcache=c"

Compiles for generic SPARC architecture. 

-xcg89

"-xcg(89|92)"

Compiles for SPARC V8 architecture. 

-xcg92

"-xcg(89|92)"

Specifies target processor chip. 

-xchip=c

"-xchip=c"

Enables linker reordering of functions. 

-xF

"-xF"

Inlines the specified routines to optimize for speed. 

-xinline=rlst

"-xinline=f[,...f]"

Inlines selected libm library routines for optimization.

-xlibmil

"-xlibmil"

SPARC: Uses a library of optimized math routines.

-xlibmopt

"-xlibmopt"

Cancels -xlibmil on the command line.

-xnolibmil

"-xnolibmil"

Does not use math library routines. 

-xnolibmopt

"-xnolibmopt"

Specifies optimization level to level.

-xOlevel

"-xO[level]"

SPARC: Controls scratch register use.

-xregs=rlst

"-xregs=r[,...r] "

SPARC: Allows no memory-based traps.

-xsafe=mem

"-xsafe=mem"

SPARC: Does not allow optimizations that increase code size.

-xspace

"-xspace"

Specifies a target instruction set and optimization system. 

-xtarget=t

"-xtarget=t"

Enables unrolling of loops where possible. 

-xunroll=n

"-xunroll=n"