Oracle® Solaris Studio 12.4: Overview

Exit Print View

Updated: December 2014
 
 

Oracle Solaris Studio Compilers

Oracle Solaris Studio software includes C, C++, and Fortran compilers, which have the following features:

  • Comply with modern standards for C, C++, and Fortran programming languages.

  • Produce code that is targeted for specific operating systems, processors, architectures, memory models (32-bit and 64-bit), floating-point arithmetic, and more, according to command-line options you specify.

  • Perform automatic parallelization on serial source code to produce binaries that exhibit enhanced performance on multicore systems.

  • Produce code that is optimized in ways that you can specify through command-line options to suit your application and deployment environment.

  • Prepare binaries for enhanced debugging or analysis by other Oracle Solaris Studio tools.

  • Use the same command-line options across all the compilers to specify these features.

Some of the Oracle Solaris Studio compiler options you can use to optimize your compiled code for speed and take the best advantage of processor instruction sets and features are as follows:

–On

Specifies a level of optimization indicated by n, which can be a number from 1 to 5. A higher optimization level creates a binary with better runtime performance.

–fast

Selects the optimum combination of compilation options for speed of executable code. –fast can be used effectively as a starting point for tuning an executable for maximum runtime performance.

–g

Produces additional information in the binary for debugging with dbx and analysis with Performance Analyzer. Compiling with the –g option enables you to use the full capabilities of the Performance Analyzer, such as viewing annotated source, function information, and compiler commentary messages that describe the optimizations and transformations that the compiler made while compiling your program.

Oracle Solaris Studio compilers provide significantly more information than other compilers to help you understand your code. With optimization, the compilers insert commentary describing the transformations performed on the code, any obstacles to parallelization, operation counts for loop iterations, and so forth. The compiler commentary can be displayed in tools such as Performance Analyzer.