Oracle® Solaris Studio 12.4: Overview

Exit Print View

Updated: December 2014
 
 

Fortran 95 Compiler

The Fortran compiler in Oracle Solaris Studio is optimized for Oracle Solaris on multiprocessor systems. The compiler can perform both automatic and explicit loop parallelization to enable your programs to run efficiently on multiprocessor systems.

The Fortran compiler offers compatibility with Fortran77, Fortran90, and Fortran95 standards. and support of OpenMP 4.0.

The f95 command invokes the Oracle Solaris Studio Fortran compiler.

f95 Command Syntax

The syntax of the f95 command is:

f95 [compiler-options] source-files... [-llibrary]

The compiler options precede the source file names. You can type f95 -flags to see short descriptions of all the possible compiler options.

The source file names must be one or more Fortran source file names ending in .f, .F, .f90, .f95, .F90, .F95, or .for.

Following the source file names, you can optionally specify the –llibrary option to add object libraries to the linker's list of search libraries.

A sample command to compile a Fortran program from two source files:

% f95 -o hello_1 foo.f bar.f

To compile the same program with separate compile and link steps:

% f95 -c -o bar.o bar.f
% f95 -c  -o foo.o foo.f
% f95 -o hello_1 bar.o foo.o  

To compile the same program and link in a library called libexample:

% f95 -o hello_1 foo.f bar.f -lexample

Fortran Documentation

For complete information about using the Fortran 95 compiler, and a description of the f95 command and its options, see the Oracle Solaris Studio 12.4: Fortran User’s Guide and the f95(1) man page. For information about the new and changed features, see What’s New in Oracle Solaris Studio 12.4 . For information about problems and workarounds, and limitations and incompatibilities of the compiler, see Oracle Solaris Studio 12.4: Release Notes .