JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Solaris Studio 12.2: C++ User's Guide
search filter icon
search icon

Document Information

Preface

Part I C++ Compiler

1.  The C++ Compiler

2.  Using the C++ Compiler

3.  Using the C++ Compiler Options

Part II Writing C++ Programs

4.  Language Extensions

5.  Program Organization

6.  Creating and Using Templates

7.  Compiling Templates

8.  Exception Handling

9.  Improving Program Performance

10.  Building Multithreaded Programs

Part III Libraries

11.  Using Libraries

12.  Using The C++ Standard Library

13.  Using the Classic iostream Library

14.  Using the Complex Arithmetic Library

15.  Building Libraries

Part IV Appendixes

A.  C++ Compiler Options

A.1 How Option Information Is Organized

A.2 Option Reference

A.2.1 -386

A.2.2 -486

A.2.3 -Bbinding

A.2.3.1 Values

A.2.4 -c

A.2.4.1 Examples

A.2.5 -cg{89|92}

A.2.6 -compat[={4|5|g}]

A.2.6.1 Values

A.2.7 +d

A.2.7.1 Examples

A.2.8 -Dname[=def]

A.2.9 -d{y|n}

A.2.9.1 Values

A.2.10 -dalign

A.2.10.1 Warnings

A.2.11 -dryrun

A.2.12 -E

A.2.12.1 Examples

A.2.13 +e{0|1}

A.2.13.1 Values

A.2.14 -erroff[=t]

A.2.14.1 Values

A.2.15 -errtags[=a]

A.2.15.1 Values and Defaults

A.2.16 -errwarn[=t]

A.2.16.1 Values

A.2.17 -fast

A.2.17.1 Expansions

A.2.18 -features=a[,a...]

A.2.18.1 Values

A.2.19 -filt[=filter[,filter...]]

A.2.19.1 Values

A.2.20 -flags

A.2.21 -fma[={none|fused}]

A.2.22 -fnonstd

A.2.22.1 Defaults

A.2.23 -fns[={yes|no}]

A.2.23.1 Values

A.2.24 -fprecision=p

A.2.24.1 Values

A.2.25 -fround=r

A.2.25.1 Values

A.2.26 -fsimple[=n]

A.2.26.1 Values

A.2.27 -fstore

A.2.27.1 Warnings

A.2.28 -ftrap=t[,t...]

A.2.28.1 Values

A.2.29 -G

A.2.29.1 Interactions

A.2.30 -g

A.2.30.1 Interactions

A.2.31 -g0

A.2.31.1 See also

A.2.32 -H

A.2.33 -h[ ]name

A.2.33.1 Examples

A.2.34 -help

A.2.35 -Ipathname

A.2.35.1 Interactions

A.2.36 -I-

A.2.36.1 Examples

A.2.37 -i

A.2.38 -include filename

A.2.39 -inline

A.2.40 -instances=a

A.2.40.1 Values

A.2.41 -instlib=filename

A.2.41.1 Values:

A.2.42 -KPIC

A.2.43 -Kpic

A.2.44 -keeptmp

A.2.44.1 See also

A.2.45 -Lpath

A.2.45.1 Interactions

A.2.46 -llib

A.2.46.1 Interactions

A.2.47 -libmieee

A.2.48 -libmil

A.2.49 -library=l[,l...]

A.2.49.1 Values

A.2.50 -m32|-m64

A.2.51 -mc

A.2.52 -migration

A.2.53 -misalign

A.2.53.1 Interactions

A.2.54 -mr[,string]

A.2.55 -mt[={yes|no}]

A.2.55.1 See Also

A.2.56 -native

A.2.57 -noex

A.2.58 -nofstore

A.2.58.1 See also

A.2.59 -nolib

A.2.60 -nolibmil

A.2.61 -noqueue

A.2.62 -norunpath

A.2.62.1 Interactions

A.2.63 -O

A.2.64 -Olevel

A.2.65 -o filename

A.2.65.1 Interactions

A.2.66 +p

A.2.66.1 Defaults

A.2.67 -P

A.2.67.1 See also

A.2.68 -p

A.2.69 -pentium

A.2.70 -pg

A.2.71 -PIC

A.2.72 -pic

A.2.73 -pta

A.2.74 -ptipath

A.2.74.1 Interactions

A.2.75 -pto

A.2.76 -ptr

A.2.76.1 Warnings

A.2.77 -ptv

A.2.78 -Qoption phase option[,option...]

A.2.78.1 Values

A.2.79 -qoption phase option

A.2.80 -qp

A.2.81 -Qproduce sourcetype

A.2.82 -qproduce sourcetype

A.2.83 -Rpathname[:pathname...]

A.2.83.1 Defaults

A.2.84 -readme

A.2.85 -S

A.2.86 -s

A.2.87 -sb

A.2.88 -sbfast

A.2.89 -staticlib=l[,l...]

A.2.89.1 Values

A.2.90 -sync_stdio=[yes|no]

A.2.90.1 Defaults:

A.2.91 -temp=path

A.2.91.1 See also

A.2.92 -template=opt[,opt...]

A.2.92.1 Values

A.2.93 -time

A.2.94 -traceback[={%none|common|signals_list}]

A.2.95 -Uname

A.2.95.1 Examples

A.2.96 -unroll=n

A.2.97 -V

A.2.98 -v

A.2.99 -vdelx

A.2.99.1 Default

A.2.100 -verbose=v[,v...]

A.2.100.1 Values

A.2.101 +w

A.2.101.1 Defaults

A.2.102 +w2

A.2.102.1 See also

A.2.103 -w

A.2.103.1 See also

A.2.104 -Xm

A.2.105 -xaddr32

A.2.106 -xalias_level[=n]

A.2.106.1 Defaults

A.2.107 -xannotate[=yes|no]

A.2.108 -xar

A.2.108.1 Values

A.2.109 -xarch=isa

A.2.109.1 -xarch Flags for SPARC

A.2.109.2 -xarch Flags for x86

A.2.109.3 Special x86 Notes

A.2.109.4 Binary Compatibility Verification

A.2.109.5 Interactions

A.2.109.6 Warnings

A.2.110 -xautopar

A.2.110.1 See Also

A.2.111 -xbinopt={prepare|off}

A.2.111.1 Defaults

A.2.112 -xbuiltin[={%all|%none}]

A.2.112.1 Defaults

A.2.113 -xcache=c

A.2.113.1 Values

A.2.114 -xcg[89|92]

A.2.115 -xchar[=o]

A.2.115.1 Values

A.2.116 -xcheck[=i]

A.2.116.1 Values

A.2.117 -xchip=c

A.2.117.1 Values

A.2.118 -xcode=a

A.2.118.1 Values

A.2.119 -xcrossfile[=n]

A.2.120 -xdebugformat=[stabs|dwarf]

A.2.121 -xdepend=[yes|no]

A.2.122 -xdumpmacros[=value[,value...]]

A.2.122.1 Values

A.2.123 -xe

A.2.123.1 See Also

A.2.124 -xF[=v[,v...]]

A.2.124.1 Values

A.2.125 -xhelp=flags

A.2.126 -xhelp=readme

A.2.127 -xhwcprof

A.2.128 -xia

A.2.128.1 Expansions

A.2.129 -xinline[=func_spec[,func_spec...]]

A.2.129.1 Values

A.2.130 -xinstrument=[no%]datarace

A.2.131 -xipo[={0|1|2}]

A.2.131.1 Values

A.2.131.2 When Not To Use -xipo Interprocedural Analysis

A.2.132 -xipo_archive=[a]

A.2.133 -xjobs=n

A.2.133.1 Values

A.2.134 -xkeepframe[=[%all,%none,name,no%name]]

A.2.135 -xlang=language[,language]

A.2.135.1 Values

A.2.136 -xldscope={v}

A.2.136.1 Values

A.2.137 -xlibmieee

A.2.137.1 See also

A.2.138 -xlibmil

A.2.138.1 Interactions

A.2.139 -xlibmopt

A.2.139.1 Interactions

A.2.140 -xlic_lib=sunperf

A.2.141 -xlicinfo

A.2.142 -xlinkopt[=level]

A.2.142.1 Values

A.2.143 -xloopinfo

A.2.144 -xM

A.2.144.1 Examples

A.2.145 -xM1

A.2.146 -xMD

A.2.147 -xMF

A.2.148 -xMMD

A.2.149 -xMerge

A.2.149.1 See also

A.2.150 -xmaxopt[=v]

A.2.151 -xmemalign=ab

A.2.151.1 Values

A.2.152 -xmodel=[a]

A.2.153 -xnolib

A.2.153.1 Examples

A.2.154 -xnolibmil

A.2.155 -xnolibmopt

A.2.155.1 Examples

A.2.156 -xnorunpath

A.2.157 -xOlevel

A.2.157.1 Values

A.2.158 -xopenmp[=i]

A.2.158.1 Values

A.2.159 -xpagesize=n

A.2.159.1 Values

A.2.160 -xpagesize_heap=n

A.2.160.1 Values

A.2.161 -xpagesize_stack=n

A.2.161.1 Values

A.2.162 -xpch=v

A.2.162.1 Creating a Precompiled-Header File

A.2.163 -xpchstop=file

A.2.163.1 See also

A.2.164 -xpec[={yes|no}]

A.2.165 -xpg

A.2.165.1 Warnings

A.2.166 -xport64[=(v)]

A.2.166.1 Values

A.2.167 -xprefetch[=a[,a...]]

A.2.167.1 Defaults

A.2.168 -xprefetch_auto_type=a

A.2.169 -xprefetch_level[=i]

A.2.169.1 Values

A.2.170 -xprofile=p

A.2.171 -xprofile_ircache[=path]

A.2.172 -xprofile_pathmap

A.2.173 -xreduction

A.2.174 -xregs=r[,r...]

A.2.175 -xrestrict[=f]

A.2.175.1 Restricted Pointers

A.2.176 -xs

A.2.177 -xsafe=mem

A.2.177.1 Interactions

A.2.177.2 Warnings

A.2.178 -xsb

A.2.179 -xsbfast

A.2.180 -xspace

A.2.181 -xtarget=t

A.2.181.1 -xtarget Values By Platform

A.2.182 -xthreadvar[=o]

A.2.182.1 Values

A.2.183 -xtime

A.2.184 -xtrigraphs[={yes|no}]

A.2.184.1 Values

A.2.185 -xunroll=n

A.2.185.1 Values

A.2.186 -xustr={ascii_utf16_ushort|no}

A.2.186.1 Values

A.2.187 -xvector[=a]

A.2.187.1 Defaults

A.2.188 -xvis[={yes|no}]

A.2.188.1 Defaults

A.2.189 -xvpara

A.2.190 -xwe

A.2.190.1 See Also

A.2.191 -Yc,path

A.2.191.1 Values

A.2.192 -z[ ]arg

B.  Pragmas

Glossary

Index

A.1 How Option Information Is Organized

To help you find information, compiler option descriptions are separated into the following subsections. If the option is one that is replaced by or identical to some other option, see the description of the other option for full details.

Table A-1 Option Subsections

Subsection
Contents
Option Definition
A short definition immediately follows each option. (There is no heading for this category.)
Values
If the option has one or more values, this section defines each value.
Defaults
If the option has a primary or secondary default value, it is stated here.

The primary default is the option value in effect if the option is not specified. For example, if –compat is not specified, the default is –compat=5.

The secondary default is the option in effect if the option is specified, but no value is given. For example, if –compat is specified without a value, the default is -compat=4.

Expansions
If the option has a macro expansion, it is shown in this section.
Examples
If an example is needed to illustrate the option, it is given here.
Interactions
If the option interacts with other options, the relationship is discussed here.
Warnings
If there are cautions regarding use of the option, they are noted here, as are actions that might cause unexpected behavior.
See also
This section contains references to further information in other options or documents.
“Replace with” “Same as”
If an option has become obsolete and has been replaced by another option, the replacement option is noted here. Options described this way may not be supported in future releases.

If there are two options with the same general meaning and purpose, the preferred option is referenced here. For example, “Same as -xO” indicates that -xO is the preferred option.