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

Exit Print View

Updated: March 2015
 
 

3.3.4 Debugging Options

Table 3-5  Debugging Options
Option
Action
-###
Equivalent to -dryrun
+d
Does not expand C++ inline functions.
-dryrun
Shows shows all commands that the driver would issue to all components of the compilation.
-E
Runs only the preprocessor on the C++ source files and sends the result to stdout. Does not compile.
-g
Compiles for use with the debugger.
-g0
Compiles for debugging but does not disable inlining.
-H
Prints path names of included files.
-keeptmp
Retains temporary files created during compilation.
-P
Only preprocesses source; outputs to .i file.
-preserve_argvalues
(x86) Save copies of register-based function arguments in the stack.
-Qoption
Passes an option directly to a compilation phase.
-s
Strips the symbol table out of the executable file, thus preventing the ability to debug code.
-temp
Defines the directory for temporary files.
-verbose
Controls compiler verbosity.
-xanalyze
Produce a static analysis of the source code that can be viewed using the Code Analyzer.
-xcheck
Adds a runtime check for stack overflow.
-xdebuginfo
Compiles for use with the debugger, specifying how much debug detail to emit.
-xdumpmacros
Prints information about macros such as definition, location defined and undefined, and locations used.
-xe
Only checks for syntax and semantic errors.
-xglobalize
Control globalization of file static variables but not functions.
-xhelp=flags
Displays a summary list of compiler options.
-xkeep_unref
Keep definitions of unreferenced functions and variables.
-xpatchpadding
Reserve an area of memory before the start of each function.
-xprevise
Produce a static analysis of the source code that can be viewed using the Code Analyzer.
-xport64
Warns against common problems during a port from a 32-bit architecture to a 64-bit architecture.
-xs
(Oracle Solaris) Link debug information from object files into executable.