JavaSolarisCommunitiesAbout SunHow to BuyMy AccountCartUnited StatesWorldwide
Sun Microsystems Documentation
docs.sun.com
Browse Documentation Titles
Browse Product Documentation
Help

All Optimization Options

Option Language Meaning
-fast C C++ F95 This option is a macro that you can effectively use as a starting point for tuning an executable for maximum run-time performance.
-fma C C++ F95 Enables automatic generation of floating-point, fused, multiply-add instructions.
-instlib C++ Inhibits the generation of template instances that are duplicated in a library, either static or shared, and the current object.
-O C C++ F95 Macro for -x03. Note: use the capital letter o for this option, not zero.
-s C C++ F95 Strips the symbol table from the executable file.
-xalias_level C C++ Allows the compiler to perform type-based alias-analysis.
-xarch C C++ F95 Specifies the target architecture instruction set (ISA).
-xbinopt C C++ F95 Instructs the compiler to prepare the binary for later optimizations, transformations and analysis (see binopt(1)).
-xbuiltin C C++ Enables or disables better optimization of standard library calls.
-xcache C C++ F95 Defines the cache properties for use by the optimizer.
-xchip C C++ F95 Specifies the target processor for use by the optimizer.
-xcrossfile C++ F95 Enables optimization and inlining across source files.
-xdepend C C++ F95 Analyzes loops for inter-iteration data dependencies and performs loop restructuring.
-xF C C++ F95 Enables the optimal reordering of functions and variables by the linker.
-xinline C C++ F95 Specifies which user-written routines can be inlined by the optimizer at -xO3 or higher.
-xinstrument C C++ F95 Compiles and instruments your program for analysis by the Thread Analyzer.
-xipo C C++ F95 Performs interprocedural optimizations.
-xipo_archive C F95 Enables the compiler to optimize object files that are passed to the linker with object files that were compiled with -xipo and that reside in the archive library (.a) before producing an executable.
-xjobs C C++ F95 Sets compilation for multiple processors.
-xlibmil C C++ F95 Inlines selected library routines for optimization.
-xlibmopt C C++ F95 Uses a library of optimized math routines.
-xlinkopt C C++ F95 Performs link-time optimizations on relocatable object files.
-xmaxopt C C++ F95 Limits the level of the opt pragma.
-xmemalign C C++ F95 Specifies the maximum assumed memory alignment and the behavior of misaligned data accesses.
-xnolibmil C C++ F95 Cancels -xlibmil on the command line.
-xnolibmopt C C++ F95 Does not use the math routine library by turning off any previously specified -xlibmopt options.
-xnorunpath C Prevents inclusion of a run-time search-path for shared libraries in the executable.
-xO C C++ F95 Specifies optimization level.
-xpagesize C C++ F95 Set the preferred page size for the stack and the heap.
-xpagesize_heap C C++ F95 Set the preferred page size for the heap.
-xpagesize_stack C C++ F95 Set the preferred page size for the stack.
-xpch C C++ Activates the precompiled-header feature.
-xpchstop C C++ Identifies the last include file to be considered in creating a precompiled-header file.
-xpentium C Generates code for the Pentium processor.
-xpg C C++ F95 Compiles for profiling with the gprof profiler.
-xprefetch C C++ F95 Enables and adjusts prefetch instructions on those architectures that support prefetch.
-xprefetch_auto_type C C++ F95 Determines whether or not the compiler generates indirect prefetches for the loops indicated by the -xprefetch_level option in the same fashion that the prefetches for direct memory accesses are generated.
-xprefetch_level C C++ F95 Controls the aggressiveness of automatic insertion of prefetch instructions as determined with -xprefetch=auto.
-xprofile C C++ F95 Collects or optimizes with runtime profiling data.
-xprofile_ircache C++ F95 Improves compilation time during the use phase of -xprofile by reusing compilation data saved from the collect phase of -xprofile.
-xprofile_pathmap F95 For use in conjunction with the -xprofile=use option.
-xprofile_pathmap C For use in conjunction with the -xprofile=use option.
-xregs C C++ F95 Makes available additional scratch registers for use during compilation.
-xrestrict C C++ Treats pointer-valued function parameters as restricted pointers.
-xsafe C C++ F95 Allows the compiler to assume that no memory protection violations occur.
-xspace C C++ F95 Does not allow optimizations that increase code size.
-xtarget C C++ F95 Specifies the target system for instruction set and optimization.
-xthreadvar C C++ Works in conjunction with the __thread declaration specifier to take advantage of the compiler's thread-local storage facility.
-xunroll C C++ F95 Enables unrolling of loops where possible.
-xvector C C++ F95 Enables automatic generation of calls to the vector library and/or the generation of the SIMD (Single Instruction Multiple Data) instructions.
-xvis C C++ Declares the use of the assembly-language templates defined in the VIS[tm] instruction set Software Developers Kit (VSDK).

ContactAbout SunNewsEmploymentSite MapPrivacyTerms of UseTrademarksCopyright Sun Microsystems, Inc.