Oracle Solaris Studio

From Wikipedia, the free encyclopedia
  (Redirected from Sun Studio Compiler Suite)
Jump to: navigation, search
Oracle Solaris Studio
Developer(s) Oracle Corporation
Stable release 12.4[1] / November 11, 2014; 14 months ago (2014-11-11)
Operating system Solaris, OpenSolaris, RHEL, Oracle Linux[2]
Available in English, Japanese
Simplified Chinese
Type Compiler, debugger, software build, integrated development environment
License Free for download and use as described in the Sun Studio product license.

The Oracle Solaris Studio, formerly named Sun Studio, Sun WorkShop, Forte Developer, and SunPro Compilers, is a compiler suite which is Oracle Corporation's flagship software development product for the operating systems Solaris and Linux. The Oracle Solaris Studio software delivers optimizing compilers for C, C++, and Fortran, libraries, and performance analysis, and debugging tools for Solaris on SPARC, and both Solaris and Linux on x86/x64 platforms, including multi-core systems.

The Oracle Studio compiler and development tools software suite is downloadable at no charge from an Oracle website however there are many security and functionality patch updates which are only available with a support contract from Oracle.[3]

Version 12.4 adds support for compiling C++ programs as C++11.[4] All features of C++11 are supported except for concurrency and atomic operations, and user-defined literals.


Supported architectures[edit]


The Oracle Studio software is a suite of software products that includes:

Compiler optimizations[edit]

A common optimizing backend is used for code generation.

A high-level intermediate representation called Sun IR is used, and high-level optimizations done in the iropt (intermediate representation optimizer) component are operated at the Sun IR level. Major optimizations include:


The OpenMP shared memory parallelization API is native to all three Solaris Studio compilers.

Code coverage[edit]

Main article: Tcov

Tcov, a source code coverage analysis and statement-by-statement profiling tool, comes as a standard utility with Sun Studio suite. Tcov generates exact counts of the number of times each statement in a program is executed and annotates source code to add instrumentation.

The tcov utility gives information on how often a program executes segments of code. It produces a copy of the source file, annotated with execution frequencies. The code can be annotated at the basic block level or the source line level. As the statements in a basic block are executed the same number of times, a count of basic block executions equals the number of times each statement in the block is executed.[7] The tcov utility does not produce any time-based data.


The GCC for SPARC Systems (GCCFSS) compiler uses GNU Compiler Collection's (GCC) front end with the Sun Studio compiler's code-generating back end. Thus, GCCFSS is able to handle GCC-specific compiler directives, while it is also able to take advantage of the compiler optimizations in the Sun Studio compiler's back end. This greatly facilitates the porting of GCC-based applications to SPARC systems.

GCCFSS 4.2 adds a new functionality as a cross compiler; SPARC binaries can be generated on an x86 (or x64) machine running Solaris.[8]

Research platform[edit]

Before its cancellation, the Rock would have been the first general-purpose processor to support hardware transactional memory (HTM). The Sun Studio compiler is used by a number of research projects, including Hybrid Transactional Memory (HyTM)[9] and Phased Transactional Memory (PhTM),[10] to investigate support and possible HTM optimizations.


Product name Version number Supported Operating Systems Release date
Forte Developer 6 (Sun WorkShop 6) 6 Solaris May 2000
Forte Developer 6 update 1 6.1 Solaris November 2000
Forte Developer 6 update 2 6.2 Solaris July 2001
Sun ONE Studio 7 (Forte Developer 7) 7 Solaris May 2002
Sun ONE Studio 8 Compiler Collection 8 Solaris May 2003
Sun Studio 8 8 Solaris March 2004
Sun Studio 9 9 Solaris, Linux July 2004
Sun Studio 10 10 Solaris, Linux January 2005
Sun Studio 11 11 Solaris, Linux November 2005
Sun Studio 12 12 Solaris, Linux June 2007
Sun Studio 12 Update 1 12.1 Solaris, Linux June 2009
Oracle Solaris Studio 12.2 12.2 Solaris, Linux September 2010
Oracle Solaris Studio 12.3 12.3 Solaris, Linux December 2011
Oracle Solaris Studio 12.4 12.4 Solaris, Linux November 2014


External links[edit]