1.3 Compiling for 64-Bit Platforms
1.4 Binary Compatibility Verification
3. Using the C++ Compiler Options
6. Creating and Using Templates
9. Improving Program Performance
10. Building Multithreaded Programs
12. Using The C++ Standard Library
13. Using the Classic iostream Library
This section provides a summary list of the new and changed features and functionality introduced in the Solaris Studio 12.2 C++ 5.11 Compiler release.
The -g option with any -O option or -xO option enables inlining. (A.2.30 -g)
The C++ option -xalias_level=compatible option asserts that the program meets the requirements of the C++ standard. (A.2.106 -xalias_level[=n])
Support has been added for the Apache C++ library installed in Oracle Solaris. (A.2.49 -library=l[,l...])
-compat=g option provides some compatibility with Gnu g++. (A.2.6 -compat[={4|5|g}])
The -features=[no%]rvalueref option overrides certain compiler checks. (A.2.18 -features=a[,a...])
Added support for the SPARC VIS3 version of the SPARC-V9 ISA. Compiling with the -xarch=sparcvis3 option enables the compiler to use instructions from the SPARC-V9 instruction set, plus the UltraSPARC and UltraSPARC-III extensions, the fused multiply-add instructions, and the Visual Instruction Set (VIS) version 3.0. (A.2.109 -xarch=isa)
The default for the -xvector option has changed on x86-based systems to -xvector=simd. (A.2.187 -xvector[=a])
Support for the AMD SSE4a instruction set is now available with the -xarch=amdsse4a option. (A.2.109 -xarch=isa)
The -traceback option enables an executable to print a stack trace if a severe error occurs. (A.2.94 -traceback[={%none|common|signals_list}])
The -mt option has been changed to -mt=yes or -mt=no.(A.2.55 -mt[={yes|no}])
The #warning compiler directive issues the text in the directive as a warning and continues compilation. (2.5.4 Warnings and Errors)
New pragmas does_not_read_global_data, does_not_write_global_data, and no_side_effect. (2.5.1 Pragmas)
The header file mbarrier.h is now available. It defines various memory barrier intrinsics for multithreaded code on SPARC and x86 processors. (10.5 Memory Barrier Intrinsics)
The -xprofile=tcov option has been enhanced to support an optional profile directory pathname, and the ability to generate tcov-compatible feedback data. (A.2.170 -xprofile=p)
In this release, the dependency file written by the -xMD and -xMMD options (C/C++) overwrites any previously existing file. (A.2.146 -xMD)