| Option | Language | Meaning |
|---|---|---|
| -B | C C++ F95 | Specifies whether a library binding for linking is symbolic, dynamic (shared), or static (nonshared). |
| -c | C C++ F95 | Suppresses linking with the linker and, instead, produces a .o file for each source file. |
| -Dname | C C++ F95 | Defines a macro symbol name to the preprocessor. |
| -d | C C++ F95 | Allows or disallows dynamic libraries for the entire executable. |
| -dalign | C C++ F95 | Use -xmemalign instead. |
| -erroff | C C++ F95 | Suppresses compiler warning messages but has no effect on error messages. |
| -errtags | C C++ F95 | Displays the message tag for each warning message of the compiler front-end that can be suppressed with the -erroffoption or made a fatal error with the -errwarn option. |
| -errwarn | C C++ F95 | Causes the compiler to exit with a failure status for the given warning messages. |
| -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. |
| -fns | C C++ F95 | Enables the nonstandard floating-point mode on SPARC and selects SSE flush-to-zero mode and, where available, denormals-are-zero mode for x86. |
| -fprecision | C C++ F95 | Sets floating-point rounding precision mode. |
| -fround | C C++ F95 | Sets the IEEE rounding mode in effect at startup. |
| -fsimple | C C++ F95 | Selects floating-point optimization preferences. |
| -fstore | C C++ F95 | Forces precision of floating-point expressions. |
| -ftrap | C C++ F95 | Sets the IEEE trapping mode in effect at startup but does not install a SIGFPE handler. |
| -G | C C++ F95 | Build a dynamic shared library instead of an executable file. |
| -g | C C++ F95 | Instructs both the compiler and the linker to prepare the file or program for debugging. |
| -h | C C++ F95 | Assign a name to the generated shared dynamic library. |
| -I | C C++ F95 | Adds a pathname to the list of directories that are searched for #include files with relative file paths. |
| -KPIC | C C++ F95 | Use -xcode=pic32 instead. |
| -Kpic | C C++ F95 | Use -xcode=pic13 instead. |
| -L | C C++ F95 | Adds a path to the library search paths. |
| -l | C C++ F95 | Adds dynamic or static library to linker's list of search libraries. |
| -m32|64 | C C++ F95 | Specifies the memory model for the compiled binary object. |
| -mt | C C++ F95 | Indicates compilation and linking for multithreaded code. |
| -native | C C++ F95 | Use -xtarget=native instead. |
| -nofstore | C C++ F95 | Disables forced precision of expression. |
| -O | C C++ F95 | Macro for -x03. Note: use the capital letter o for this option, not zero. |
| -o | C C++ F95 | Sets the name of the output file (with the suffix .o) or the executable file. |
| -qp | C C++ F95 | Same as -p. |
| -R | C C++ F95 | Builds dynamic library search paths into the executable file. |
| -S | C C++ F95 | Compiles and generates only assembly code. |
| -s | C C++ F95 | Strips the symbol table from the executable file. |
| -Uname | C C++ F95 | Removes any initial definition of the named macro symbol that was created by -D on the same command line, including those implicitly placed there by the command-line driver. |
| -w | C C++ F95 | Suppresses warning messages. |
| -xa | C C++ F95 | Generates code for profiling. |
| -xarch | C C++ F95 | Specifies the target architecture instruction set (ISA). |
| -xautopar | C C++ F95 | Turns on automatic parallelization for multiple processors. |
| -xbinopt | C C++ F95 | Instructs the compiler to prepare the binary for later optimizations, transformations and analysis (see binopt(1)). |
| -xcache | C C++ F95 | Defines the cache properties for use by the optimizer. |
| -xcg | C C++ F95 | Do not use this option, the current Solaris operating systems no longer support the SPARC V7 architecture. |
| -xcheck | C C++ F95 | Enables a runtime check for stack overflow. |
| -xchip | C C++ F95 | Specifies the target processor for use by the optimizer. |
| -xcode | C C++ F95 | Specifies code address space. |
| -xdebugformat | C C++ F95 | Identifies the format of debugger information |
| -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. |
| -xhelp | C C++ F95 | Displays online help for compiler options or latest readme. |
| -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. |
| -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. |
| -xlic_lib | C C++ F95 | Use -library=sunperf instead. |
| -xlicinfo | C C++ F95 | Obsolete: This option is silently ignored by the compiler. |
| -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. |
| -xmodel | C C++ F95 | Enables the compiler to modify the form of 64-bit objects for the Solaris x86 platforms and should only be specified for the compilation of such objects. |
| -xnolib | C C++ F95 | Disables linking with default system libraries. |
| -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. |
| -xO | C C++ F95 | Specifies optimization level. |
| -xopenmp | C C++ F95 | Enable explicit parallelization with OpenMP directives. |
| -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. |
| -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. |
| -xregs | C C++ F95 | Makes available additional scratch registers for use during compilation. |
| -xs | C C++ F95 | Allows debugging by dbx without object files. |
| -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. |
| -xtime | C C++ F95 | Causes the CC driver to report execution times for the various compilation passes. |
| -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. |