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

Exit Print View

Updated: March 2015
 
 

3.3.1 Code Generation Options

Table 3-2  Code Generation Options
Option
Action
-compat
Sets the e compatibility mode of the compiler.
-g
Compiles for use with the debugger.
-KPIC
Produces position-independent code.
-Kpic
Produces position-independent code.
-mt
Compiles and links for multithreaded code.
-xaddr32
Restricts code to a 32–bit address space (x86/x64)
-xarch
Specifies the target architecture.
-xcode=a
(SPARC) Specifies the code address space.
-xlinker
Specify linker options.
-xMerge
(SPARC) Merges the data segment with the text segment.
-xtarget
Specifies the target system.
-xmodel
Modifies the form of 64-bit objects for the Solaris x86 platforms
+w
Identifies code that might have unintended consequences.
+w2
Emits all the warnings emitted by +w plus warnings about technical violations that are probably harmless but that might reduce the maximum portability of your program.
-xregs
The compiler can generate faster code if it has more registers available for temporary storage (scratch registers). This option makes available additional scratch registers that might not always be appropriate.
-xsegment_align
Cause the driver to include a special mapfile on the link line.
-z arg
Linker option.