Skip Navigation Links | |
Exit Print View | |
![]() |
Oracle Solaris Studio 12.3: C User's Guide Oracle Solaris Studio 12.3 Information Library |
1. Introduction to the C Compiler
1.3 Binary Compatibility Verification
1.4 Compiling for 64-Bit Platforms
1.8 Organization of the Compiler
1.9 C-Related Programming Tools
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. C Compiler Options Reference
C. Implementation-Defined ISO/IEC C99 Behavior
E. Implementation-Defined ISO/IEC C90 Behavior
H. Oracle Solaris Studio C: Differences Between K&R C and ISO C
Note the following new and changed features in the current C compiler release.
Support for new SPARC T4 platform: —xtarget=T4, —xchip=T4, —xarch=sparc4
Support for new x86 Platform Sandy Bridge / AVX: —xtarget=sandybridge —xchip=sandybridge —xarch=avx
Support for new x86 Platform Westmere / AES: —xtarget=westmere —xchip=westmere —xarch=aes
New compiler option: —g3 adds expanded debugging symbol table information. (B.2.35 -g3)
New compiler option: —Xlinker arg passes arg to linker, ld(1). Equivalent to —Wl,arg. (B.2.74 -Xlinker arg)
The OpenMP default number of threads, OMP_NUM_THREADS is now 2 (was 1). (B.2.131 -xopenmp[=i])
Support for the OpenMP 3.1 shared memory parallelization specifications. (B.2.131 -xopenmp[=i])
New compiler option: —xivdep sets the interpretation of ivdep pragmas, which tell a compiler to ignore loop-carried dependences on array references in a loop. (B.2.106 -xivdep[=p])
Use —library=sunperf to link to the Sun Performance Library. This obsoletes -xlic_lib=sunperf. (B.2.46 -library=sunperf)
New option —xanalyze={code|no} produces a static analysis of the source code that can be viewed using the Oracle Solaris Code Analyzer. (B.2.77 -xanalyze={code|no})
A new suboption —xbuiltin=%default only inlines functions that do not set errno. The value of errno is always correct at any optimization level, and can be checked reliably. (B.2.82 -xbuiltin[=(%all|%default|%none)])
Support for user-supplied compiler option defaults. (B.4 User-Supplied Default Options File)
—xkeepframe option prohibits stack related optimizations for the named functions. (B.2.108 -xkeepframe[=[%all,%none,name,no%name]])
Use of -features=%none and -features=%all deprecated in this release. (B.2.19 -features=[v])
New attributes vector_size and returns_twice recognized. (2.9 Supported Attributes)
-xcheck=init_local now initializes VLAs (variable length arrays) according to their base type. (B.2.89 -xcheck[=o])
The functionality of the aligned attribute expanded to include automatics as well as globals and statics. (2.9 Supported Attributes)
-xdumpmacros provides information such as macro defines, undefines, and instances of usage. (B.2.97 -xdumpmacros[=value[,value...]])