Sun Java Solaris Communities My SDN Account Join SDN
 

Sun Studio Topics

Performance Matters
Download record-setting compilers and tools for free.

Building High-Performing Applications with Sun Studio C/C++/Fortran Compilers


The Sun Studio C, C++, and Fortran compilers include advanced features for building high performance applications on Solaris and Linux SPARC and x86/x64 platforms. These compilers utilize a common optimizing backend code generator, and accept standard C, C++, and Fortran with extensions.

The C compiler (cc) is in full compliance with ISO/IEC 9899:1999, Programming Language - C and is available on Solaris platforms when you compile with the -xc99 option. This compiler supports all C language features of ISO/IEC 9899:1999, Programming Language - C on all supported operating systems.

The C++ compiler (CC) supports the ISO International Standard for C++, ISO IS 14882:2003, Programming Language C++.

The Fortran compiler (f95) conforms to part one of the ISO/IEC 1539-1:1997 Fortran standards document. The compiler also provides a Fortran 77 compatibility mode that accepts most legacy Fortran 77 source codes.


Compiler Options

The » Compiler Options Page lists of all the Sun Studio compiler options organized by programming language or by functional task. Each listed option is linked directly to its explanation in the Sun Studio docs.


C Compiler

» View and compare features introduced by each software release for C

» cc - C Compiler man page

» C Compiler Readme

» C User's Guide
Details the Sun C compiler's command-line options, pragma directives, supported ISO/IEC 9899:1999 features, and the lint code-checking program. There are also several appendices with reference material such as ISO C data representations, implementation defined behavior, the differences between Sun C (K & R) and Sun ISO C, performance tuning, and converting applications to compile for the 64-bit environment. (June, 2009)


C++ Compiler

» View and compare features introduced by each software release for C++

» CC - C++ Compiler man page

» C++ Compiler Readme

C++ FAQ

» C++ User's Guide
Details using the C++ compiler's command-line options, writing efficient C++ code, and working with the C++ libraries. (June, 2009)

» C++ Programming Forum


Fortran Compiler

» View and compare features introduced by each software release for Fortran 95

» f95 - Fortran Compiler man page

» Fortran 95 Compiler Readme

» Fortran User's Guide
Details the environment and command-line options for the Sun Fortran 95 compiler f95, including Fortran 77 compatibility options and parallelization. (June, 2009)

 

» Fortran Programming Guide
Provides information essential for programming efficient Fortran 95 applications with the Sun compiler f95. It covers topics such as Fortran 95 input/output, program development, libraries, program analysis and debugging, numerical accuracy, porting, performance, optimization, parallelization, and interoperability. (June, 2007)

 

» Fortran Library Reference
Describes the intrinsic functions and routines in the Sun Studio Fortran libraries. (June, 2007)  

» Fortran Programming Forum


Technical Articles


Be sure to browse the collection of »Technical Articles for helpful and advanced topics on compiling with Sun Studio C/C++ and Fortran.
 
 
Sun Studio
Sun Studio Resources
 
 
 
»  Send Comments

Let us know what you like and don't like about the Compilers and Tools hub. Send us feedback. But for support questions, see the support page.