C
- -C
4.3.5 -C filename
B.2.5 -C
- -c
4.3.6 -c
B.2.6 -c
- C99
- // comment indicators,
D.1.5 Commenting Code With //
- array declarator,
D.1.11 Static and Other Type Qualifiers Allowed in Array Declarators
- flexible array members,
D.1.8 Flexible Array Members
- FLT_EVAL_METHOD,
D.1.1 Precision of Floating Point Evaluators
- __func__ support,
D.1.3 __func__ Support
- idempotent qualifiers,
D.1.9 Idempotent Qualifiers
- implicit function declaration in,
D.1.6 Disallowed Implicit int and Implicit Function Declarations
- inline function specifier,
D.1.10 inline Functions
- list of keywords,
D.1.2 C99 Keywords
- mixed declarations and code,
D.1.14 Mixed Declarations and Code
- _Pragma,
D.1.17 _Pragma
- Studio compiler implementation of,
C.1 Implementation-defined Behavior (J.3 )
- type declaration in for loop,
D.1.15 Declaration in for-Loop Statement
- type specifier requirement,
D.1.7 Declarations Using Implicit int
- variable length arrays,
D.1.12 Variable Length Arrays (VLA):
- cache, as used by optimizer,
B.2.85 -xcache[=c]
- calloc function,
C.1.12 Library Functions (J.3.12)
- case statements,
E.1.12 Statements (G.3.12)
- cc command-line options,
B.2 cc Options
- -#,
B.2.1 -#
- -###,
B.2.2 -###
- -A,
B.2.3 -Aname[(tokens)]
- -B,
B.2.4 -B[static|dynamic]
- -C,
B.2.5 -C
- -c,
B.2.6 -c
- -d
B.2.8 -d[y|n]
B.2.33 -G
- interaction with -G,
B.2.33 -G
-E,
B.2.10 -E
- -errfmt,
B.2.11 -errfmt[=[no%]error]
- -erroff,
B.2.13 -erroff[=t]
- -errshort,
B.2.14 -errshort[=i]
- -errtags,
B.2.15 -errtags[=a]
- -errwarn,
B.2.16 -errwarn[=t]
- -fast,
B.2.17 -fast
- -fd,
B.2.18 -fd
- -features,
B.2.19 -features=[v]
- -flags,
B.2.20 -flags
- -flteval,
B.2.21 -flteval[={any|2}]
- interaction with FLT_EVAL_METHOD,
D.1.1 Precision of Floating Point Evaluators
-fns,
B.2.24 -fns[={no|yes}]
- as part of -fast expansion,
B.2.17 -fast
-fprecision,
B.2.27 -fprecision=p
- interaction with FLT_EVAL_METHOD,
D.1.1 Precision of Floating Point Evaluators
-fround,
B.2.28 -fround=r
- interaction with -xlibmopt,
B.2.112 -xlibmopt
-fsimple,
B.2.29 -fsimple[=n]
- as part of -fast expansion,
B.2.17 -fast
-fsingle,
B.2.30 -fsingle
- as part of -fast expansion,
B.2.17 -fast
- interaction with FLT_EVAL_METHOD,
D.1.1 Precision of Floating Point Evaluators
-fstore,
B.2.31 -fstore
- -ftrap,
B.2.32 -ftrap=t[,t...]
- -G,
B.2.33 -G
- -g,
B.2.34 -g
- -g3,
B.2.35 -g3
- -H,
B.2.36 -H
- -h,
B.2.37 -h name
- -I,
B.2.38 -I[-|dir]
- -i,
B.2.39 -i
- -include,
B.2.40 -include filename
- -keeptmp,
B.2.43 -keeptmp
- -KPIC,
B.2.41 -KPIC
- -Kpic,
B.2.42 -Kpic
- -L,
B.2.44 -Ldir
- -l,
B.2.45 -lname
- -library=sunperf,
B.2.46 -library=sunperf
- -mc,
B.2.48 -mc
- -mr,
B.2.51 -mr[,string]
- -mt,
B.2.52 -mt[={yes|no}]
- -native,
B.2.53 -native
- -nofstore,
B.2.54 -nofstore
- as part of -fast expansion,
B.2.17 -fast
-O,
B.2.55 -O
- -o,
B.2.56 -o filename
- -P,
B.2.57 -P
- -Q,
B.2.60 -Q[y|n]
- -Qoption,
B.2.59 –Qoption phase option[,option..]
- -qp,
B.2.61 -qp
- -R,
B.2.62 -Rdir[:dir]
- -S,
B.2.63 -S
- -s,
B.2.64 -s
- -traceback,
B.2.65 -traceback[={%none|common|signals_list}]
- -U,
B.2.66 -Uname
- -V,
B.2.67 -V
- -v,
B.2.68 -v
- -W,
B.2.69 -Wc,arg
- -w,
B.2.70 -w
- -X,
B.2.71 -X[c|a|t|s]
- interaction with FLT_EVAL_METHOD,
D.1.1 Precision of Floating Point Evaluators
-xaddr32,
B.2.75 -xaddr32[=yes|no]
- -xalias_level,
B.2.76 -xalias_level[=l]
- as part of -fast expansion,
B.2.17 -fast
- examples
5.4 Examples of Memory Reference Constraints
5.4.7 Example: Using a Pragma
- explanation,
5.1 Introduction to Type-Based Analysis
-xannotate,
B.2.78 -xannotate[=yes|no]
- -xarch
- interaction with FLT_EVAL_METHOD,
D.1.1 Precision of Floating Point Evaluators
-xautopar,
B.2.80 -xautopar
- -xbinopt,
B.2.81 -xbinopt={prepare|off}
- -xbuiltin,
B.2.82 -xbuiltin[=(%all|%default|%none)]
- as part of -fast expansion,
B.2.17 -fast
-xc99,
B.2.84 -xc99[=o]
- in math conversions,
2.6.2 Usual Arithmetic Conversions
-xCC,
B.2.83 -xCC
- -xchar,
B.2.87 -xchar[=o]
- -xchar_byte_order,
B.2.88 -xchar_byte_order[=o]
- -xcheck,
B.2.89 -xcheck[=o]
- -xchip,
B.2.90 -xchip[=c]
- -xcode,
B.2.91 -xcode[=v]
- -xcsi,
B.2.93 -xcsi
- -xdebugformat,
B.2.94 -xdebugformat=[stabs|dwarf]
- -xdepend,
B.2.95 -xdepend=[yes|no]
- -xdryrun,
B.2.96 -xdryrun
- -xdumpmacros,
B.2.97 -xdumpmacros[=value[,value...]]
- -xe,
B.2.98 -xe
- -xF,
B.2.99 -xF[=v[,v...]]
- -xhelp,
B.2.100 -xhelp=flags
- -xhwcprof,
B.2.101 -xhwcprof
- -xinline,
B.2.102 -xinline=list
- -xipo,
B.2.104 -xipo[=a]
- -xipo_archive,
B.2.105 -xipo_archive=[a]
- -xjobs,
B.2.107 -xjobs=n
- -xkeepframe,
B.2.108 -xkeepframe[=[%all,%none,name,no%name]]
- -xldscope
2.2 Linker Scoping Specifiers
B.2.109 -xldscope={v}
- -xlibmieee,
B.2.110 -xlibmieee
- -xlibmil,
B.2.111 -xlibmil
- as part of -fast expansion,
B.2.17 -fast
-xlibmopt,
B.2.112 -xlibmopt
- as part of -fast expansion,
B.2.17 -fast
-xlinkopt,
B.2.115 -xlinkopt[=level]
- interaction with -G,
B.2.115 -xlinkopt[=level]
-xloopinfo,
B.2.116 -xloopinfo
- -xM,
B.2.117 -xM
- -xM1,
B.2.118 -xM1
- -xmaxopt,
B.2.123 -xmaxopt[=v]
- interaction with -xO,
B.2.123 -xmaxopt[=v]
-xMD,
B.2.119 -xMD
- -xmemalign,
B.2.124 -xmemalign=ab
- as part of -fast expansion,
B.2.17 -fast
-xMerge,
B.2.122 -xMerge
- -xMF,
B.2.120 -xMF filename
- -xMMD,
B.2.121 -xMMD
- -xmodel,
B.2.125 -xmodel=[a]
- -xnolib,
B.2.126 -xnolib
- -xnolibmil,
B.2.127 -xnolibmil
- -xnolibmopt,
B.2.128 -xnolibmopt
- interaction with -xlibmopt,
B.2.112 -xlibmopt
-xO,
B.2.130 -xO[1|2|3|4|5]
- interaction with -xmaxopt,
B.2.130 -xO[1|2|3|4|5]
-xopenmp,
B.2.131 -xopenmp[=i]
- -xP,
B.2.132 -xP
- -xpagesize,
B.2.133 -xpagesize=n
- -xpagesize_heap,
B.2.134 -xpagesize_heap=n
- -xpagesize_stack,
B.2.135 -xpagesize_stack=n
- -xpch,
B.2.136 -xpch=v
- -xpchstop,

- -xpec,
B.2.138 -xpec[={yes|no}]
- -xpentium,
B.2.139 -xpentium
- -xpg,
B.2.140 -xpg
- -xprefetch,
B.2.141 -xprefetch[=val[,val]]
- -xprefetch_auto_type,
B.2.142 -xprefetch_auto_type=a
- -xprefetch_level,
B.2.143 -xprefetch_level=l
- -xprofile,
B.2.144 –xprofile=p
- -xprofile_ircache,
B.2.145 -xprofile_ircache[=path]
- -xprofile_pathmap,
B.2.146 -xprofile_pathmap
- -xreduction,
B.2.147 -xreduction
- -xregs,
B.2.148 -xregs=r[,r…]
- -xrestrict,
B.2.149 -xrestrict[=f]
- -xs,
B.2.150 -xs
- -xsafe,
B.2.151 -xsafe=mem
- -xsfpconst,
B.2.152 -xsfpconst
- -xspace,
B.2.153 -xspace
- -xstrconst,
B.2.154 -xstrconst
- -xtarget,
B.2.155 -xtarget=t
- -xtemp,
B.2.156 -xtemp=dir
- -xtime,
B.2.158 -xtime
- -xtransition,
B.2.159 -xtransition
- warning for trigraphs,
6.5.1 ISO C Translation Phases
-xtrigraphs,
B.2.160 -xtrigraphs[={yes|no}]
- -xunroll,
B.2.161 -xunroll=n
- -xustr,
B.2.162 -xustr={ascii_utf16_ushort|no}
- -xvector,
B.2.163 -xvector[=a]
- -xvis,
B.2.164 -xvis
- -xvpara,
B.2.165 -xvpara
- -Y,
B.2.166 -Yc, dir
- -YA,
B.2.167 -YA, dir
- -YI,
B.2.168 -YI, dir
- -YP
B.1 Option Syntax
B.2.169 -YP, dir
- -YS,
B.2.170 -YS, dir
- -Zll,
B.2.171 -Zll
- C compiler
- changing default dirs searched for libraries,
B.1 Option Syntax
- compilation modes and dependencies,
2.12 Predefined Names
- compiling a program
B.1 Option Syntax
B.1 Option Syntax
- components,
1.8 Organization of the Compiler
- options passed to linker,
B.3 Options Passed to the Linker
- cftime function,
4.3.13 -errsecurity=level
- cg (code generator),
1.8 Organization of the Compiler
- char, signedness of,
B.2.87 -xchar[=o]
- character
- bits in set,
E.1.4.3 (5.2.4.2.1) The number of bits in a character in the execution character set:
- decimal point,
E.1.15.5 (7.1.1) The decimal-point character:
- mapping set,
E.1.4 Characters (G.3.4)
- multibyte, shift status,
E.1.4.2 (5.2.1.2) The shift states used for the encoding of multibyte characters:
- set, collation sequence,
E.1.15.7 (7.11.4.4) The collation sequence of the execution character set:
- single-character character-constant,
E.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,
E.1.4.1 (5.2.1) The members of the source and execution character sets, except as explicitly specified in the Standard:
- space,
E.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,
E.1.14.3 (7.3.1) The sets of characters tested for by the isalnum, isalpha, iscntrl, islower, isprint, and isupper functions:
- clock function
C.1.12 Library Functions (J.3.12)
E.1.15.2 (7.12.2.1) The era for the clock function
- code generator,
1.8 Organization of the Compiler
- code optimization
- by using -fast,
B.2.17 -fast
- optimizer,
1.8 Organization of the Compiler
- with -xO,
B.2.130 -xO[1|2|3|4|5]
- comments
- preventing removal by preprocessor,
B.2.5 -C
- using // by issuing -xCC,
B.2.83 -xCC
- using // in C99,
D.1.5 Commenting Code With //
- compatibility options
C Compiler Options Reference
B.2.71 -X[c|a|t|s]
- compiler commentary in object file, reading with er_src utility,
B.2.82 -xbuiltin[=(%all|%default|%none)]
- computed goto,
2.5 Labels as Values
- consistency checks by lint,
4.6.1.1 Consistency Checks
- const,
6.12.3 Single Compilation Compatibility
- const,
6.6 const and volatile
- constants
- promotion of integral,
6.4.5 Integral Constants
- specific to Solaris Studio C ISO C,
2.1.2 Character Constants
- specific to Solaris Studio ISO C,
2.1 Constants
- conversions
2.6.2 Usual Arithmetic Conversions
2.6.2 Usual Arithmetic Conversions
- integers,
E.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,
B.2.138 -xpec[={yes|no}]
- coverage analysis (tcov),
B.2.144 –xprofile=p
- cpp (C preprocessor),
1.8 Organization of the Compiler
- C programming tools,
1.9 C-Related Programming Tools
- creat function,
4.3.13 -errsecurity=level
- cscope
cscope: Interactively Examining a C Program
cscope: Interactively Examining a C Program
8.2.9 Command-Line Syntax for Editors
- command-line use
8.2.2 Step 2: Invoke the cscope Program
8.2.2 Step 2: Invoke the cscope Program
8.2.5 Command-Line Options
8.2.5 Command-Line Options
- editing source files
8.2.1 Step 1: Set Up the Environment
8.2.1 Step 1: Set Up the Environment
8.2.4 Step 4: Edit the Code
8.2.4 Step 4: Edit the Code
8.2.9 Command-Line Syntax for Editors
8.2.9 Command-Line Syntax for Editors
- environment setup
8.2.1 Step 1: Set Up the Environment
8.2.1 Step 1: Set Up the Environment
8.2.9 Command-Line Syntax for Editors
- environment variables
8.2.6 View Paths
8.2.6 View Paths
- searching source files
8.1 The cscope Process
8.1 The cscope Process
8.2.1 Step 1: Set Up the Environment
8.2.3 Step 3: Locate the Code
8.2.3 Step 3: Locate the Code
- usage examples
8.2 Basic Use
8.2.4 Step 4: Edit the Code
8.2.8 Examples
8.2.8.3 Changing the Value of a Variable