Oracle® Solaris Studio 12.4: C++ User's Guide

Exit Print View

Updated: March 2015
 
 

3.3.10 Run-Time Performance Options

Table 3-11  Run-Time Performance Options
Option
Action
–fast
Selects a combination of compilation options for optimum execution speed for some programs.
-fma
Enables automatic generation of floating-point fused multiply-add instructions.
-g
Instructs both the compiler and the linker to prepare the program for performance analysis (and for debugging).
-s
Strips the symbol table out of the executable.
-m32|-m64
Specifies the memory model for the compiled binary object.
-xalias_level
Enables the compiler to perform type-based alias analysis and optimizations.
-xarch=isa
Specifies target architecture instruction set.
-xbinopt
Prepares the binary for later optimizations, transformations, and analysis.
-xbuiltin[=opt]
Enables or disables better optimization of standard library calls
-xcache=c
(SPARC) Defines target cache properties for the optimizer.
-xchip=c
Specifies target processor chip.
-xdebuginfo
Instructs both the compiler and the linker to prepare the program for performance analysis (and for debugging).
-xF
Enables linker reordering of functions and variables.
-xinline=flst
Specifies which user-written routines can be inlined by the optimizer
-xinline_param
Manually change the heuristics used by the compiler for deciding when to inline a function call.
-xinline_report
Generate a report written to standard output on the inlining of functions by the compiler.
-xipo
Performs interprocedural optimizations.
-xipo_build
Reduce compile time by avoiding optimizations during the initial pass through the compiler, optimizing only at link time.
-xlibmil
Inlines selected libm library routines for optimization.
-xlibmopt
Uses a library of optimized math routines.
-xlinkopt
Performs link-time optimization on the resulting executable or dynamic library in addition to any optimizations in the object files.
-xmemalign=ab
(SPARC) Specifies maximum assumed memory alignment and behavior of misaligned data accesses.
-xnolibmil
Cancels– xlibmil on the command line.
-xnolibmopt
Does not use the math routine library.
-xOlevel
Specifies optimization level to level.
-xpagesize
Sets the preferred page size for the stack and the heap.
-xpagesize_heap
Sets the preferred page size for the heap.
-xpagesize_stack
Sets the preferred page size for the stack.
-xprefetch[=lst]
Enables prefetch instructions on architectures that support prefetch.
-xprefetch_level
Control the aggressiveness of automatic insertion of prefetch instructions as set by -xprefetch=auto
-xprofile
Collects or optimizes using runtime profiling data.
-xregs=rlst
Controls scratch register use.
-xsafe=mem
(SPARC) Allows no memory-based traps.
-xsegment_align
Cause the driver to include a special mapfile on the link line.
-xspace
(SPARC) Does not allow optimizations that increase code size.
-xtarget=t
Specifies a target instruction set and optimization system.
-xthreadvar
Changes the default thread-local storage access mode.
-xthroughput
Specify that the application will be run in situations where many processes are simultaneously running on the system.
-xunboundsym
Specify whether the program contains references to dynamically bound symbols.
-xunroll=n
Enables unrolling of loops where possible.
-xvis
(SPARC) Enables compiler recognition of the assembly-language templates defined in the VIS instruction set