Documentation Home
> Fortran User's Guide
Fortran User's Guide
Book Information
Preface
Chapter 1 Introduction
Standards Conformance
Features of the Fortran Compilers
Other Fortran Utilities
Debugging Utilities
Sun Performance Library(TM)
Man Pages
READMEs
Command-Line Help
Chapter 2 Using Sun Fortran Compilers
A Quick Start
Invoking the Compiler
Compile-Link Sequence
Command-Line File Name Conventions
Source Files
Source File Preprocessors
Separate Compiling and Linking
Consistent Compiling and Linking
Linking Mixed Fortran 90 and Fortran 77 Compilations
Unrecognized Command-Line Arguments
Modules (Fortran 90)
Directives
General Directives
The C Directive (f77)
The UNROLL Directive
The WEAK Directive (f77)
The OPT Directive (f77)
(SPARC Only) The PIPELOOP=n Directive
Parallelization Directives
Compiler Usage Tips
Determining Platform Hardware
Simplifying Options
Using Aliases (C Shell)
Using Environment Variables
Memory Size
Swap Space Limits
Increasing Swap Space
Control of Virtual Memory
Chapter 3 f77/f90 Compiler Options
Command Syntax
Options Syntax
Options Summaries
Commonly Used Options
Debugging Options
Floating-Point Options
Library Options
Licensing Options
Performance Options
Parallelization Options
Profiling Options
Alignment Options
Backward Compatibility and Legacy Options
Obsolescent Options
Options Reference
-386
-486
-a
-ansi
-arg=local
-autopar
-B{static|dynamic}
-C
-c
-cg89
-cg92
-copyargs
-Dname[=def]
-dalign
-dbl
-dbl_align_all=y
-depend
-dryrun
-d{y|n}
-e
-erroff=taglist
-errtags
-explicitpar
-ext_names=e
-F
-f
-fast
-fixed
-flags
-fnonstd
-fns[={no|yes}]
-fpover[={yes|no}]
-fprecision=p
-free
-fround=r
-fsimple[=n]
-fstore
-ftrap=t
-G
-g
-hnm
-help
-Idir
-i2
-i4
-inline=f1[,...fn]
-Kpic
-KPIC
-Ldir
-lx
-libmil
-loopinfo
-Mdir
-misalign
-mp={sun|cray}
-mt
-native
-noautopar
-nodepend
-noexplicitpar
-nofstore
-nolib
-nolibmil
-noqueue
-noreduction
-norunpath
-O[n]
-O
-O1
-O2
-O3
-O4
-O5
-o nm
-oldldo
-onetrip
-p
-pad[=p]
-parallel
-pentium
-pg
-pic
-PIC
-Qoption pr ls
-qp
-R ls
-r8
-reduction
-S
-s
-sb
-sbfast
-silent
-stackvar
-stop_status=yn
-temp=dir
-time
-U
-u
-unroll=n
-V
-v
-vax=v
-vpara
-w
-xa
-xarch=a
For SPARC Platforms:
For x86 Platforms:
-xautopar
-xcache=c
-xcg89
-xcg92
-xchip=c
-xcode=code
-xcommonchk[={no|yes}]
-xcrossfile [=n]
-xdepend
-xexplicitpar
-xF
-xhelp=h
-xildoff
-xildon
-xinline=f1[,...,fn]
-xl[d]
-xlibmil
-xlibmopt
-xlic_lib=libs
-xlicinfo
-Xlist[x]
-xloopinfo
-xmaxopt[=n]
-xnolib
-xnolibmil
-xnolibmopt
-xO[n]
-xpad
-xparallel
-xpg
-xpp={fpp|cpp}
-xprefetch[={yes|no}]
-xprofile=p
-xreduction
-xregs=r
-xs
-xsafe=mem
-xsb
-xsbfast
-xspace
-xtarget=t
-xtime
-xtypemap=spec
-xunroll=n
-xvector[={yes|no}]
-xvpara
-Zlp
-ztext
Appendix A Runtime Error Messages
Operating System Error Messages
Signal Handler Error Messages
I/O Error Messages (f77)
I/O Error Messages (f90)
Appendix B Features Release History
f77 New Features and Changes
Features in f77 5.0 That are New Since 4.2
Features in f77 4.2 That are New Since 4.0
Features in f77 4.0 that are New Since 3.0/3.0.1
FORTRAN 77 Upward Compatibility
Fortran 3.0/3.0.1 to 4.0
BCP: Running Applications from Solaris 1 in 2
f90 New Features and Changes
New Features in f90 2.0 Since 1.2:
Appendix C Fortran 90 Features and Differences
Features
Tabs in the Source
Fixed-Form Source
Free-Form Source
Continuation Line Limits
Fixed-Form Source Lines
Directives
Tab Form
Source Form Assumed
Mixing Forms
Case
Boolean Type
Miscellaneous Rules Governing Boolean Type
Alternate Forms of Boolean Constants
Octal
Hexadecimal
Hollerith
Alternate Contexts of Boolean Constants
Abbreviated Size Notation for Numeric Data Types
Cray Pointers
Syntax
Purpose of Cray Pointers
Cray Pointers and Fortran Pointers
Features of Cray Pointers
Restrictions on Cray Pointers
Restrictions on Cray Pointees
Usage of Cray Pointers
Optimization and Cray Pointers
Cray Character Pointers
Purpose of Cray Character Pointers
Declaration of Cray Character Pointers
Operations on Cray Character Pointers
Restrictions on Cray Character Pointers and Pointees
Intrinsics
Directives
Form of General Directive Lines
Fixed-Form Source
Free-Form Source
FIXED and FREE Directives
Scope
Uses
Restrictions
Parallelization Directives
Form of Parallelization Directive Lines
Fixed
Free
Compatibility with FORTRAN 77
Source
Linking with f77-Compiled Routines
I/O
Intrinsics
Forward Compatibility
Mixing Languages
Module Files
Appendix D -xtarget Platform Expansions
© 2010, Oracle Corporation and/or its affiliates