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

Document Information

Preface

1.  Introduction to the C Compiler

2.  C-Compiler Implementation-Specific Information

3.  Parallelizing C Code

4.  lint Source Code Checker

5.  Type-Based Alias Analysis

6.  Transitioning to ISO C

7.  Converting Applications for a 64-Bit Environment

8.  cscope: Interactively Examining a C Program

A.  Compiler Options Grouped by Functionality

B.  C Compiler Options Reference

C.  Implementation-Defined ISO/IEC C99 Behavior

D.  Features of C99

E.  Implementation-Defined ISO/IEC C90 Behavior

F.  ISO C Data Representations

G.  Performance Tuning

H.  Oracle Solaris Studio C: Differences Between K&R C and ISO C

Index

Numbers and Symbols

A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

X

Y

Z

C

-C
index icon4.3.5 -C filename
index iconB.2.5 -C
-c
index icon4.3.6 -c
index iconB.2.6 -c
C99
// comment indicators, index iconD.1.5 Commenting Code With //
array declarator, index iconD.1.11 Static and Other Type Qualifiers Allowed in Array Declarators
flexible array members, index iconD.1.8 Flexible Array Members
FLT_EVAL_METHOD, index iconD.1.1 Precision of Floating Point Evaluators
__func__ support, index iconD.1.3 __func__ Support
idempotent qualifiers, index iconD.1.9 Idempotent Qualifiers
implicit function declaration in, index iconD.1.6 Disallowed Implicit int and Implicit Function Declarations
inline function specifier, index iconD.1.10 inline Functions
list of keywords, index iconD.1.2 C99 Keywords
mixed declarations and code, index iconD.1.14 Mixed Declarations and Code
_Pragma, index iconD.1.17 _Pragma
Studio compiler implementation of, index iconC.1 Implementation-defined Behavior (J.3 )
type declaration in for loop, index iconD.1.15 Declaration in for-Loop Statement
type specifier requirement, index iconD.1.7 Declarations Using Implicit int
variable length arrays, index iconD.1.12 Variable Length Arrays (VLA):
cache, as used by optimizer, index iconB.2.85 -xcache[=c]
calloc function, index iconC.1.12 Library Functions (J.3.12)
case statements, index iconE.1.12 Statements (G.3.12)
cc command-line options, index iconB.2 cc Options
-#, index iconB.2.1 -#
-###, index iconB.2.2 -###
-A, index iconB.2.3 -Aname[(tokens)]
-B, index iconB.2.4 -B[static|dynamic]
-C, index iconB.2.5 -C
-c, index iconB.2.6 -c
-d
index iconB.2.8 -d[y|n]
index iconB.2.33 -G
interaction with -G, index iconB.2.33 -G
-E, index iconB.2.10 -E
-errfmt, index iconB.2.11 -errfmt[=[no%]error]
-erroff, index iconB.2.13 -erroff[=t]
-errshort, index iconB.2.14 -errshort[=i]
-errtags, index iconB.2.15 -errtags[=a]
-errwarn, index iconB.2.16 -errwarn[=t]
-fast, index iconB.2.17 -fast
-fd, index iconB.2.18 -fd
-features, index iconB.2.19 -features=[v]
-flags, index iconB.2.20 -flags
-flteval, index iconB.2.21 -flteval[={any|2}]
interaction with FLT_EVAL_METHOD, index iconD.1.1 Precision of Floating Point Evaluators
-fns, index iconB.2.24 -fns[={no|yes}]
as part of -fast expansion, index iconB.2.17 -fast
-fprecision, index iconB.2.27 -fprecision=p
interaction with FLT_EVAL_METHOD, index iconD.1.1 Precision of Floating Point Evaluators
-fround, index iconB.2.28 -fround=r
interaction with -xlibmopt, index iconB.2.112 -xlibmopt
-fsimple, index iconB.2.29 -fsimple[=n]
as part of -fast expansion, index iconB.2.17 -fast
-fsingle, index iconB.2.30 -fsingle
as part of -fast expansion, index iconB.2.17 -fast
interaction with FLT_EVAL_METHOD, index iconD.1.1 Precision of Floating Point Evaluators
-fstore, index iconB.2.31 -fstore
-ftrap, index iconB.2.32 -ftrap=t[,t...]
-G, index iconB.2.33 -G
-g, index iconB.2.34 -g
-g3, index iconB.2.35 -g3
-H, index iconB.2.36 -H
-h, index iconB.2.37 -h name
-I, index iconB.2.38 -I[-|dir]
-i, index iconB.2.39 -i
-include, index iconB.2.40 -include filename
-keeptmp, index iconB.2.43 -keeptmp
-KPIC, index iconB.2.41 -KPIC
-Kpic, index iconB.2.42 -Kpic
-L, index iconB.2.44 -Ldir
-l, index iconB.2.45 -lname
-library=sunperf, index iconB.2.46 -library=sunperf
-mc, index iconB.2.48 -mc
-mr, index iconB.2.51 -mr[,string]
-mt, index iconB.2.52 -mt[={yes|no}]
-native, index iconB.2.53 -native
-nofstore, index iconB.2.54 -nofstore
as part of -fast expansion, index iconB.2.17 -fast
-O, index iconB.2.55 -O
-o, index iconB.2.56 -o filename
-P, index iconB.2.57 -P
-Q, index iconB.2.60 -Q[y|n]
-Qoption, index iconB.2.59 –Qoption phase option[,option..]
-qp, index iconB.2.61 -qp
-R, index iconB.2.62 -Rdir[:dir]
-S, index iconB.2.63 -S
-s, index iconB.2.64 -s
-traceback, index iconB.2.65 -traceback[={%none|common|signals_list}]
-U, index iconB.2.66 -Uname
-V, index iconB.2.67 -V
-v, index iconB.2.68 -v
-W, index iconB.2.69 -Wc,arg
-w, index iconB.2.70 -w
-X, index iconB.2.71 -X[c|a|t|s]
interaction with FLT_EVAL_METHOD, index iconD.1.1 Precision of Floating Point Evaluators
-xaddr32, index iconB.2.75 -xaddr32[=yes|no]
-xalias_level, index iconB.2.76 -xalias_level[=l]
as part of -fast expansion, index iconB.2.17 -fast
examples
index icon5.4 Examples of Memory Reference Constraints
index icon5.4.7 Example: Using a Pragma
explanation, index icon5.1 Introduction to Type-Based Analysis
-xannotate, index iconB.2.78 -xannotate[=yes|no]
-xarch
interaction with FLT_EVAL_METHOD, index iconD.1.1 Precision of Floating Point Evaluators
-xautopar, index iconB.2.80 -xautopar
-xbinopt, index iconB.2.81 -xbinopt={prepare|off}
-xbuiltin, index iconB.2.82 -xbuiltin[=(%all|%default|%none)]
as part of -fast expansion, index iconB.2.17 -fast
-xc99, index iconB.2.84 -xc99[=o]
in math conversions, index icon2.6.2 Usual Arithmetic Conversions
-xCC, index iconB.2.83 -xCC
-xchar, index iconB.2.87 -xchar[=o]
-xchar_byte_order, index iconB.2.88 -xchar_byte_order[=o]
-xcheck, index iconB.2.89 -xcheck[=o]
-xchip, index iconB.2.90 -xchip[=c]
-xcode, index iconB.2.91 -xcode[=v]
-xcsi, index iconB.2.93 -xcsi
-xdebugformat, index iconB.2.94 -xdebugformat=[stabs|dwarf]
-xdepend, index iconB.2.95 -xdepend=[yes|no]
-xdryrun, index iconB.2.96 -xdryrun
-xdumpmacros, index iconB.2.97 -xdumpmacros[=value[,value...]]
-xe, index iconB.2.98 -xe
-xF, index iconB.2.99 -xF[=v[,v...]]
-xhelp, index iconB.2.100 -xhelp=flags
-xhwcprof, index iconB.2.101 -xhwcprof
-xinline, index iconB.2.102 -xinline=list
-xipo, index iconB.2.104 -xipo[=a]
-xipo_archive, index iconB.2.105 -xipo_archive=[a]
-xjobs, index iconB.2.107 -xjobs=n
-xkeepframe, index iconB.2.108 -xkeepframe[=[%all,%none,name,no%name]]
-xldscope
index icon2.2 Linker Scoping Specifiers
index iconB.2.109 -xldscope={v}
-xlibmieee, index iconB.2.110 -xlibmieee
-xlibmil, index iconB.2.111 -xlibmil
as part of -fast expansion, index iconB.2.17 -fast
-xlibmopt, index iconB.2.112 -xlibmopt
as part of -fast expansion, index iconB.2.17 -fast
-xlinkopt, index iconB.2.115 -xlinkopt[=level]
interaction with -G, index iconB.2.115 -xlinkopt[=level]
-xloopinfo, index iconB.2.116 -xloopinfo
-xM, index iconB.2.117 -xM
-xM1, index iconB.2.118 -xM1
-xmaxopt, index iconB.2.123 -xmaxopt[=v]
interaction with -xO, index iconB.2.123 -xmaxopt[=v]
-xMD, index iconB.2.119 -xMD
-xmemalign, index iconB.2.124 -xmemalign=ab
as part of -fast expansion, index iconB.2.17 -fast
-xMerge, index iconB.2.122 -xMerge
-xMF, index iconB.2.120 -xMF filename
-xMMD, index iconB.2.121 -xMMD
-xmodel, index iconB.2.125 -xmodel=[a]
-xnolib, index iconB.2.126 -xnolib
-xnolibmil, index iconB.2.127 -xnolibmil
-xnolibmopt, index iconB.2.128 -xnolibmopt
interaction with -xlibmopt, index iconB.2.112 -xlibmopt
-xO, index iconB.2.130 -xO[1|2|3|4|5]
interaction with -xmaxopt, index iconB.2.130 -xO[1|2|3|4|5]
-xopenmp, index iconB.2.131 -xopenmp[=i]
-xP, index iconB.2.132 -xP
-xpagesize, index iconB.2.133 -xpagesize=n
-xpagesize_heap, index iconB.2.134 -xpagesize_heap=n
-xpagesize_stack, index iconB.2.135 -xpagesize_stack=n
-xpch, index iconB.2.136 -xpch=v
-xpchstop, index icon
-xpec, index iconB.2.138 -xpec[={yes|no}]
-xpentium, index iconB.2.139 -xpentium
-xpg, index iconB.2.140 -xpg
-xprefetch, index iconB.2.141 -xprefetch[=val[,val]]
-xprefetch_auto_type, index iconB.2.142 -xprefetch_auto_type=a
-xprefetch_level, index iconB.2.143 -xprefetch_level=l
-xprofile, index iconB.2.144 –xprofile=p
-xprofile_ircache, index iconB.2.145 -xprofile_ircache[=path]
-xprofile_pathmap, index iconB.2.146 -xprofile_pathmap
-xreduction, index iconB.2.147 -xreduction
-xregs, index iconB.2.148 -xregs=r[,r…]
-xrestrict, index iconB.2.149 -xrestrict[=f]
-xs, index iconB.2.150 -xs
-xsafe, index iconB.2.151 -xsafe=mem
-xsfpconst, index iconB.2.152 -xsfpconst
-xspace, index iconB.2.153 -xspace
-xstrconst, index iconB.2.154 -xstrconst
-xtarget, index iconB.2.155 -xtarget=t
-xtemp, index iconB.2.156 -xtemp=dir
-xtime, index iconB.2.158 -xtime
-xtransition, index iconB.2.159 -xtransition
warning for trigraphs, index icon6.5.1 ISO C Translation Phases
-xtrigraphs, index iconB.2.160 -xtrigraphs[={yes|no}]
-xunroll, index iconB.2.161 -xunroll=n
-xustr, index iconB.2.162 -xustr={ascii_utf16_ushort|no}
-xvector, index iconB.2.163 -xvector[=a]
-xvis, index iconB.2.164 -xvis
-xvpara, index iconB.2.165 -xvpara
-Y, index iconB.2.166 -Yc, dir
-YA, index iconB.2.167 -YA, dir
-YI, index iconB.2.168 -YI, dir
-YP
index iconB.1 Option Syntax
index iconB.2.169 -YP, dir
-YS, index iconB.2.170 -YS, dir
-Zll, index iconB.2.171 -Zll
C compiler
changing default dirs searched for libraries, index iconB.1 Option Syntax
compilation modes and dependencies, index icon2.12 Predefined Names
compiling a program
index iconB.1 Option Syntax
index iconB.1 Option Syntax
components, index icon1.8 Organization of the Compiler
options passed to linker, index iconB.3 Options Passed to the Linker
cftime function, index icon4.3.13 -errsecurity=level
cg (code generator), index icon1.8 Organization of the Compiler
char, signedness of, index iconB.2.87 -xchar[=o]
character
bits in set, index iconE.1.4.3 (5.2.4.2.1) The number of bits in a character in the execution character set:
decimal point, index iconE.1.15.5 (7.1.1) The decimal-point character:
mapping set, index iconE.1.4 Characters (G.3.4)
multibyte, shift status, index iconE.1.4.2 (5.2.1.2) The shift states used for the encoding of multibyte characters:
set, collation sequence, index iconE.1.15.7 (7.11.4.4) The collation sequence of the execution character set:
single-character character-constant, index iconE.1.13.1 (6.8.1) Whether the value of a single-character character constant in a constant expression that controls conditional inclusion matches the value of the same character constant in the execution character set:
source and execution of set, index iconE.1.4.1 (5.2.1) The members of the source and execution character sets, except as explicitly specified in the Standard:
space, index iconE.1.14.12 (7.9.2) Whether space characters that are written out to a text stream immediately before a new-line character appear when read in:
testing of sets, index iconE.1.14.3 (7.3.1) The sets of characters tested for by the isalnum, isalpha, iscntrl, islower, isprint, and isupper functions:
clock function
index iconC.1.12 Library Functions (J.3.12)
index iconE.1.15.2 (7.12.2.1) The era for the clock function
code generator, index icon1.8 Organization of the Compiler
code optimization
by using -fast, index iconB.2.17 -fast
optimizer, index icon1.8 Organization of the Compiler
with -xO, index iconB.2.130 -xO[1|2|3|4|5]
comments
preventing removal by preprocessor, index iconB.2.5 -C
using // by issuing -xCC, index iconB.2.83 -xCC
using // in C99, index iconD.1.5 Commenting Code With //
compatibility options
index iconC Compiler Options Reference
index iconB.2.71 -X[c|a|t|s]
compiler commentary in object file, reading with er_src utility, index iconB.2.82 -xbuiltin[=(%all|%default|%none)]
computed goto, index icon2.5 Labels as Values
consistency checks by lint, index icon4.6.1.1 Consistency Checks
const, index icon6.12.3 Single Compilation Compatibility
const, index icon6.6 const and volatile
constants
promotion of integral, index icon6.4.5 Integral Constants
specific to Solaris Studio C ISO C, index icon2.1.2 Character Constants
specific to Solaris Studio ISO C, index icon2.1 Constants
conversions
index icon2.6.2 Usual Arithmetic Conversions
index icon2.6.2 Usual Arithmetic Conversions
integers, index iconE.1.5.2 (6.2.1.2) The result of converting an integer to a shorter signed integer, or the result of converting an unsigned integer to a signed integer of equal length, if the value cannot be represented:
cool tools URL, index iconB.2.138 -xpec[={yes|no}]
coverage analysis (tcov), index iconB.2.144 –xprofile=p
cpp (C preprocessor), index icon1.8 Organization of the Compiler
C programming tools, index icon1.9 C-Related Programming Tools
creat function, index icon4.3.13 -errsecurity=level
cscope
index iconcscope: Interactively Examining a C Program
index iconcscope: Interactively Examining a C Program
index icon8.2.9 Command-Line Syntax for Editors
command-line use
index icon8.2.2 Step 2: Invoke the cscope Program
index icon8.2.2 Step 2: Invoke the cscope Program
index icon8.2.5 Command-Line Options
index icon8.2.5 Command-Line Options
editing source files
index icon8.2.1 Step 1: Set Up the Environment
index icon8.2.1 Step 1: Set Up the Environment
index icon8.2.4 Step 4: Edit the Code
index icon8.2.4 Step 4: Edit the Code
index icon8.2.9 Command-Line Syntax for Editors
index icon8.2.9 Command-Line Syntax for Editors
environment setup
index icon8.2.1 Step 1: Set Up the Environment
index icon8.2.1 Step 1: Set Up the Environment
index icon8.2.9 Command-Line Syntax for Editors
environment variables
index icon8.2.6 View Paths
index icon8.2.6 View Paths
searching source files
index icon8.1 The cscope Process
index icon8.1 The cscope Process
index icon8.2.1 Step 1: Set Up the Environment
index icon8.2.3 Step 3: Locate the Code
index icon8.2.3 Step 3: Locate the Code
usage examples
index icon8.2 Basic Use
index icon8.2.4 Step 4: Edit the Code
index icon8.2.8 Examples
index icon8.2.8.3 Changing the Value of a Variable