Previous Next Contents Index Doc Set Home


Preface


This guide describes the compile-time environment and command-line options for SunTM Fortran compilers f77 (Fortran 77 Release 4.2) and f90 (Fortran 90 Release 1.2). Run-time error messages and new features of the compilers are listed in appendixes. Additional sources of documentation are listed at the end of this Preface.

See also the companion Fortran Programmer's Guide for a discussion of efficient program development and performance methods.


Note - In this guide, "f77/f90" and "Fortran" to indicate information that is common to both the Sun Fortran 77 and Fortran 90 compilers.


Audience

This guide is intended for scientists, engineers, and programmers who have a working knowledge of the Fortran language and wish to learn how to use the Sun Fortran compilers effectively. Familiarity with the SolarisTM operating system or UNIX® in general is also assumed.


Organization of This Guide

This user guide is organized into the following chapters and appendixes:


Multi-Platform Release

The Sun Fortran documentation covers the release of the Fortran compilers on a number of operating systems and hardware platforms:

Fortran 77 4.2 is released for:

Fortran 90 1.2 is released for:

The Fortran documentation describes the Sun compilers on all the above operating systems and platforms. Anything unique to one or more platforms is identified as "(SPARC)", "(Intel)", and/or "(PowerPC)".


Fortran Compiler Documentation

The following documentation is included with Sun Fortran:

Manuals

The following Sun manuals and guides are provided on-line and hard copy, except as indicated.

Much of Sun's compiler and related documentation is available online in either AnswerBook or HTML formats, or both. For details on installation, see the Sun Developer Products installation guides. See also the answerbook(1) man page and the f77 or f90 README.

The following documents are also relevant:

Man Pages

On-line manual (man) pages provide immediate documentation about a command, function, subroutine, or collection of such things. You can display a man page by running the command:

demo% man topic

Throughout the Fortran documentation, man page references appear with the topic name and man section number: f77(1) is accessed with man f77.

For details and useful man options, see the man command's own man page:

demo% man man
Reformatting page.  Wait... done

man(1)                    User Commands                    man(1)

NAME
     man - find and display reference manual pages

SYNOPSIS
     man [ - ] [ -adFlrt ] [ -M path ] [ -T macro-package ]
          [-s section ] name ...
     man [ -M path ] -k keyword ...
     man [ -M path ] -f filename ...

AVAILABILITY
     SUNWdoc

DESCRIPTION
     man displays information from  the  reference  manuals.   It
....etc

The following man pages are of interest to Fortran user.

f77(1) and f90(1)

The Fortran compilers command-line options

asa(1)

Fortran carriage-control print output post-processor

dbx(1)

Command-line interactive debugger

fpp(1)

Fortran source code pre-processor

fsplit(1)

Pre-processor splits Fortran 77 routines into single files

ieee_flags(3M)

Examine, set, or clear floating-point exception bits

ieee_handler(3M)

Handle floating-point exceptions

matherr(3M)

Math library error handling routine

ild(1)

Incremental link editor for object files

ld(1)

Link editor for object files

Command-Line Help

You can view very brief descriptions of the f77 and f90 command line options by invoking the compiler's -help option as shown below:

%f77 -help  -or-  
f90 -help
-ansi:        Report non-ANSI extensions.
-arg=local:   Pass by value result
-autopar:     Generate parallelized code 
-BX:          Specify dynamic or static binding
-c:           Compile only - produce .o files, suppress linking
-C:           Enable runtime subscript range checking
-cg89:        Generate code for generic SPARC V7 architecture
-cg92:        Generate code for SPARC V8 architecture
-copyargs:    Allow assignment to constant arguments
-dalign:      Assume double-type data is double aligned
-dbl:         Double default size for INTEGER, REAL, etc.
-depend:      Analyze loops for data dependencies
-dn:          Specify static binding
...etc.


READMEs

The READMEs directory contains files that describe new features, software incompatibilities, bugs, and information that was discovered after the manuals were printed. The location of this directory depends on where your software was installed:

Standard Installation
Nonstandard Installation to /my/dir/

Solaris 2.x

/opt/SUNWspro/READMEs/

/my/dir/SUNWspro/READMEs/

The files and their contents are:

File
Contents

feedback

email template file for sending feedback comments to Sun

fortran-77
fortran-90

f77/f90 bugs, new features. behavior changes, documentation errata

math_libraries

Describes optimized and specialized math libraries available

profiling_tools

Information on using the performance profiling tools

runtime_libraries

Lists libraries and executables that can be redistributed under the End User License


Conventions in Text

This guide uses the following conventions to display information.


Previous Next Contents Index Doc Set Home