- Oracle® Solaris Studio 12.4: C++ User's Guide
- Document Information
- Using This Documentation
- Part I C++ Compiler
- Part II Writing C++ Programs
- Part III Libraries
- Part IV Appendixes
- Appendix A C++ Compiler Options
- A.1 How Option Information Is Organized
- A.2 Option Reference
- A.2.1 -#
- A.2.2 -###
- A.2.3 –Bbinding
- A.2.4 –c
- A.2.5 –cg{89|92}
- A.2.6 –compat={5|g}
- A.2.7 +d
- A.2.8 -Dname[=def]
- A.2.9 –d{y|n}
- A.2.10 –dalign
- A.2.11 –dryrun
- A.2.12 –E
- A.2.13 -erroff[=t]
- A.2.14 -errtags[=a]
- A.2.15 -errwarn[=t]
- A.2.16 –fast
- A.2.17 –features=a[,a...]
- A.2.18 -filt[=filter[,filter...]]
- A.2.19 –flags
- A.2.20 -fma[={none|fused}]
- A.2.21 –fnonstd
- A.2.22 –fns[={yes|no}]
- A.2.23 -fopenmp
- A.2.24 –fprecision=p
- A.2.25 –fround=r
- A.2.26 –fsimple[=n]
- A.2.27 –fstore
- A.2.28 -ftrap=t[,t...]
- A.2.29 –G
- A.2.30 -g
- A.2.31 –g[n]
- A.2.32 –H
- A.2.33 –h[ ]name
- A.2.34 –help
- A.2.35 -Ipathname
- A.2.36 -I-
- A.2.37 –i
- A.2.38 include
filename
- A.2.39 -inline
- A.2.40 –instances=a
- A.2.41 –instlib=filename
- A.2.42 –KPIC
- A.2.43 –Kpic
- A.2.44 –keeptmp
- A.2.45 –Lpath
- A.2.46 –llib
- A.2.47 –libmieee
- A.2.48 –libmil
- A.2.49 -library=l[,l...]
- A.2.50 m32|m64
- A.2.51 -mc
- A.2.52 –misalign
- A.2.53 -mr[,string]
- A.2.54 -mt[={yes|no}]
- A.2.55 –native
- A.2.56 –noex
- A.2.57 –nofstore
- A.2.58 –nolib
- A.2.59 –nolibmil
- A.2.60 –norunpath
- A.2.61 –O
- A.2.62 –Olevel
- A.2.63 –o
filename
- A.2.64 +p
- A.2.65 –P
- A.2.66 –p
- A.2.67 –pentium
- A.2.68 –pg
- A.2.69 -PIC
- A.2.70 –pic
- A.2.71 –preserve_argvalues[=simple|none]
- A.2.72 –pta
- A.2.73 –ptipath
- A.2.74 –pto
- A.2.75 –ptv
- A.2.76 –Qoption
phase option[,option…]
- A.2.77 –qoption
phase option
- A.2.78 –qp
- A.2.79 –Qproduce
sourcetype
- A.2.80 –qproduce
sourcetype
- A.2.81 –Rpathname[:pathname…]
- A.2.82 –S
- A.2.83 –s
- A.2.84 -staticlib=l[,l…]
- A.2.85 -std=v
- A.2.86 -sync_stdio=[yes|no]
- A.2.87 –temp=path
- A.2.88 –template=opt[,opt…]
- A.2.89 –time
- A.2.90 -traceback[={%none|common|signals_list}]
- A.2.91 –Uname
- A.2.92 –unroll=n
- A.2.93 –V
- A.2.94 –v
- A.2.95 –verbose=v[,v…]
- A.2.96 -Wc,arg
- A.2.97 +w
- A.2.98 +w2
- A.2.99 –w
- A.2.100 -Xlinker
arg
- A.2.101 –Xm
- A.2.102 -xaddr32
- A.2.103 -xalias_level[=n]
- A.2.104 -xanalyze={code|%none}
- A.2.105 -xannotate[=yes|no]
- A.2.106 –xar
- A.2.107 –xarch=isa
- A.2.108 -xautopar
- A.2.109 -xbinopt={prepare|off}
- A.2.110 -xbuiltin[={%all|%default|%none}]
- A.2.111 –xcache=c
- A.2.112 -xchar[=o]
- A.2.113 -xcheck[=i[,i]]
- A.2.114 -xchip=c
- A.2.115 –xcode=a
- A.2.116 -xdebugformat=[stabs|dwarf]
- A.2.117 -xdebuginfo=a[,a...]
- A.2.118 -xdepend=[yes|no]
- A.2.119 -xdumpmacros[=value[,value...]]
- A.2.120 -xe
- A.2.121 xF[=v[,v...]]
- A.2.122 -xglobalize[={yes|no}]
- A.2.123 -xhelp=flags
- A.2.124 -xhwcprof
- A.2.125 -xia
- A.2.126 -xinline[=func-spec[,func-spec...]]
- A.2.127 xinline_param=a[,a[,a]...]
- A.2.128 xinline_report[=n]
- A.2.129 xinstrument=[no%]datarace
- A.2.130 -xipo[={0|1|2}]
- A.2.131 -xipo_archive=[a]
- A.2.132 -xipo_build=[yes|no]
- A.2.133 -xivdep[=p]
- A.2.134 -xjobs{=n|auto}
- A.2.135 -xkeep_unref[={[no%]funcs,[no%]vars}]
- A.2.136 -xkeepframe[=[%all,%none,name,no%name]]
- A.2.137 -xlang=language[,language]
- A.2.138 -xldscope={v}
- A.2.139 -xlibmieee
- A.2.140 -xlibmil
- A.2.141 –xlibmopt
- A.2.142 –xlic_lib=sunperf
- A.2.143 –xlicinfo
- A.2.144 -xlinkopt[=level]
- A.2.145 -xloopinfo
- A.2.146 –xM
- A.2.147 -xM1
- A.2.148 -xMD
- A.2.149 -xMF
- A.2.150 -xMMD
- A.2.151 –xMerge
- A.2.152 -xmaxopt[=v]
- A.2.153 -xmemalign=ab
- A.2.154 -xmodel=[a]
- A.2.155 –xnolib
- A.2.156 –xnolibmil
- A.2.157 –xnolibmopt
- A.2.158 xnorunpath
- A.2.159 -xOlevel
- A.2.160 -xopenmp[={parallel|noopt|none}]
- A.2.161 -xpagesize=n
- A.2.162 -xpagesize_heap=n
- A.2.163 -xpagesize_stack=n
- A.2.164 -xpatchpadding[={fix|patch|size}]
- A.2.165 -xpch=v
- A.2.166 -xpchstop=file
- A.2.167 -xpec[={yes|no}]
- A.2.168 –xpg
- A.2.169 -xport64[=(v)]
- A.2.170 -xprefetch[=a[,a...]]
- A.2.171 -xprefetch_auto_type=a
- A.2.172 -xprefetch_level[=i]
- A.2.173 -xprevise={yes|no}
- A.2.174 –xprofile=p
- A.2.175 -xprofile_ircache[=path]
- A.2.176 -xprofile_pathmap
- A.2.177 -xreduction
- A.2.178 –xregs=r[,r...]
- A.2.179 -xrestrict[=f]
- A.2.180 –xs[={yes|no}]
- A.2.181 –xsafe=mem
- A.2.182 -xsegment_align=n
- A.2.183 –xspace
- A.2.184 –xtarget=t
- A.2.185 -xtemp=path
- A.2.186 -xthreadvar[=o]
- A.2.187 -xthroughput[={yes|no}]
- A.2.188 –xtime
- A.2.189 -xtrigraphs[={yes|no}]
- A.2.190 -xunboundsym={yes|no}
- A.2.191 –xunroll=n
- A.2.192 -xustr={ascii_utf16_ushort|no}
- A.2.193 -xvector[=a]
- A.2.194 -xvis[={yes|no}]
- A.2.195 xvpara
- A.2.196 –xwe
- A.2.197 -Yc,path
- A.2.198 -z[ ]arg
- Appendix B Pragmas
- Glossary
- Index
F
- file descriptors, using
Opening a File Using a File Descriptor
- file names
- .SUNWCCh file name suffix
Standard Header Implementation
- suffixes
File Name Conventions
- template definition files
Source File Location Conventions
- files See also
source files- C standard header files
Standard Header Implementation
- copying
Using streambuf Objects
Dealing With Files Using Class fstream
- executable program
Compile-Link Sequence
- multiple source, using
Using Multiple Source Files
- object
Building Dynamic (Shared) Libraries
General Guidelines
Compile-Link Sequence
- opening and closing
Opening and Closing Files
- repositioning
Repositioning Within a File
- standard library
Standard Header Implementation
- using fstreams with
Dealing With Files Using Class fstream
- finalization functions
#pragma fini
- float inserter, iostream output
Output Using iostream
- floating point
- invalid
-ftrap=t[,t...]
- precision (Intel)
–fstore
- flush, iostream manipulator
iostream Predefined Manipulators
- flush, iostream manipulator
Flushing
- format control, iostreams
Format Control
- Fortran runtime libraries, linking
-xlang=language[,language]
- front end, compilation component
Components of the C++ Compilation System
- fstream.h
- iostream header file
iostream Routine Header Files
- using
Dealing With Files Using Class fstream
- fstream, defined
iostream Terminology
Basic Structure of iostream Interaction
- function
- declaration specifier
Linker Scoping
- function templates
- See also
templates
Function Templates
- declaration
Function Template Declaration
- definition
Function Template Definition
- using
Function Template Use
- function-level reordering
xF[=v[,v...]]
- functions
- in dynamic (shared) libraries
Building Dynamic (Shared) Libraries
- inlining by optimizer
-xinline[=func-spec[,func-spec...]]
- overriding
Overriding With Less Restrictive Virtual Functions
- static, as class friend
Declaring a Static Namespace-Scope Function as a
Class Friend
- functions, name in __func__
Using the Predefined __func__ Symbol for Function Name