1. Introduction to the C Compiler
2. C-Compiler Implementation-Specific Information
7. Converting Applications for a 64-Bit Environment
8. cscope: Interactively Examining a C Program
A. Compiler Options Grouped by Functionality
B.2.7 -Dname[(arg[,arg])][=expansion]
B.2.62 -traceback[={%none|common|signals_list}]
B.2.74.1 -xarch Flags for SPARC
B.2.74.4 Binary Compatibility Verification
B.2.77 -xbuiltin[=(%all|%none)]
B.2.84.1 Initialization Values for --xcheck=init_local
Initializing Structs, Unions, and Arrays
B.2.89 -xdebugformat=[stabs|dwarf]
B.2.97 -xinstrument=[no%]datarace
B.2.98.2 When Not To Use -xipo=2 Interprocedural Analysis
B.2.122.1 Explanation of SPARC Optimizations
B.2.122.2 Explanation of x86 Optimizations
B.2.128.1 Creating a Precompiled-Header File Automatically
B.2.128.2 Creating a Precompiled-Header File Manually
B.2.128.3 How the Compiler Handles an Existing Precompiled-Header File
B.2.128.4 Directing the Compiler to Use a Specific Precompiled-Header File
B.2.128.6 Screening a Header File for Problems
B.2.128.7 The Precompiled-Header File Cache
B.2.128.9 Precompiled-Header File Dependencies and make Files
B.2.129 -xpchstop=[file|<include>]
B.2.133 -xprefetch[=val[,val]]
B.2.133.1 Prefetch Latency Ratio
B.2.134 -xprefetch_auto_type=a
B.2.137 -xprofile_ircache[=path]
B.2.149.1 -xtarget Values on SPARC Platforms
B.2.149.2 -xtarget Values on x86 Platforms
B.2.156 -xustr={ascii_utf16_ushort|no}
B.3 Options Passed to the Linker
C. Implementation-Defined ISO/IEC C99 Behavior
E. Implementation-Defined ISO/IEC C90 Behavior
H. The Differences Between K&R Solaris Studio C and Solaris Studio ISO C
This chapter describes the C compiler options in alphabetical order. See Appendix A, Compiler Options Grouped by Functionality for options grouped by functionality. For example, Table A-1 lists all the optimization and performance options.
Take note that the C compiler recognizes by default some of the constructs of the 1999 ISO/IEC C standard. Specifically, the supported features are detailed in Appendix D, Supported Features of C99. Use the -xc99=none command if you want to limit the compiler to the 1990 ISO/IEC C standard.
If you are porting a K&R (Kernighan and Ritchie) C program to ISO C, make special note of the section on compatibility flags, B.2.68 -X[c|a|t|s]. Using them makes the transition to ISO C easier. Also refer to the discussion on the transition in 5.4 Examples of Memory Reference Constraints.