| Fortran 77 Language Reference |
Preface
The FORTRAN 77 Language Reference specifies the FORTRAN 77 programming language and extensions accepted by the Sun WorkShop TM 6
f77compiler.This is a reference manual intended for programmers with a working knowledge of the Fortran language and the SolarisTM operating environment.
Multiplatform Release
This Sun WorkShop Fortran release supports versions 2.6, 7, and 8 of the SolarisTM SPARCTM Platform Edition Operating Environment.
See the Fortran 77 README file,
fortran_77, in the Sun WorkShopREADMEsdirectory for information regarding availability of this release of thef77compiler on specific platforms (or use the commandf77-xhelp=readme).Access to Sun WorkShop Development Tools
Because Sun WorkShop product components and man pages do not install into the standard
/usr/bin/and/usr/share/mandirectories, you must change yourPATHandMANPATHenvironment variables to enable access to Sun WorkShop compilers and tools.To determine if you need to set your
PATHenvironment variable:1. Display the current value of thePATHvariable by typing:
%echo $PATH2. Review the output for a string of paths containing/opt/SUNWspro/bin/.
- If you find the paths, your
PATHvariable is already set to access Sun WorkShop development tools. If you do not find the paths, set yourPATHenvironment variable by following the instructions in this section.To determine if you need to set your
MANPATHenvironment variable:1. Request theworkshopman page by typing:
%man workshop2. Review the output, if any.
- If the
workshop(1) man page cannot be found or if the man page displayed is not for the current version of the software installed, follow the instructions in this section for setting yourMANPATHenvironment variable.
Note The information in this section assumes that your Sun WorkShop 6 products were installed in the/optdirectory. Contact your system administrator if your Sun WorkShop software is not installed in/opt.
The
PATHandMANPATHvariables should be set in your home.cshrcfile if you are using the C shell or in your home.profilefile if you are using the Bourne or Korn shells:
- To use Sun WorkShop commands, add the following to your
PATHvariable:
/opt/SUNWspro/bin
- To access Sun WorkShop man pages with the
mancommand, add the following to yourMANPATHvariable:
/opt/SUNWspro/man
For more information about the
PATHvariable, see thecsh(1),sh(1), andksh(1) man pages. For more information about theMANPATHvariable, see theman(1) man page. For more information about setting yourPATHandMANPATHvariables to access this release, see the Sun WorkShop 6 Installation Guide or your system administrator.How This Book Is Organized
The FORTRAN 77 Language Reference contains the following chapters and appendixes:
Chapter 1, "Elements of FORTRAN," introduces the basic parts of Sun WorkShop FORTRAN 77, standards conformance, and elements of the language.
Chapter 2, "Data Types and Data Items," describes the data types and data structures in the language, including arrays, substrings, structures, and pointers.
Chapter 3, "Expressions," discusses FORTRAN expressions and how they are evaluated.
Chapter 4, "Statements," details the statements in the FORTRAN 77 language and the extensions recognized by the Sun WorkShop compiler.
Chapter 5, "Input and Output," describes the general concepts of FORTRAN input/output and provides details on the different I/O operations.
Chapter 6, "Intrinsic Functions," tabulates and explains the intrinsic functions that are part of Sun WorkShop FORTRAN 77, including VAX VMS extensions.
Appendix A, "ASCII Character Set," lists the standard ASCII character set.
Appendix B, "Sample Statements," shows samples of selected FORTRAN 77 statements for quick reference.
Appendix C, "Data Representations," introduces the way data is represented in FORTRAN.
Appendix D, "VMS Language Extensions," describes the VAX VMS language extensions provided in Sun WorkShop FORTRAN 77.
Typographic Conventions
TABLE P-1 shows the typographic conventions that are used in Sun WorkShop documentation.
- The symbol
stands for a blank space where a blank is significant:
36.001
- Nonstandard features are tagged with the symbol "
". Standards are discussed in Chapter 1.
- FORTRAN examples appear in tab format, not fixed columns. See the discussion of source line formats in the Fortran User's Guide for details.
- The FORTRAN 77 standard uses an older convention of spelling the name "FORTRAN" capitalized. Sun documentation uses both FORTRAN and Fortran. The current convention is to use lower case: "Fortran 95".
Shell Prompts
TABLE P-2 shows the default system prompt and superuser prompt for the C shell, Bourne shell, and Korn shell.
TABLE P-2 Shell Prompts C shell %Bourne shell and Korn shell $C shell, Bourne shell, and Korn shell superuser #
Related Documentation
You can access documentation related to the subject matter of this book in the following ways:
- Through the Internet at the
docs.sun.comsm Web site. You can search for a specific book title or you can browse by subject, document collection, or product at the following Web site:
http://docs.sun.com- Through the installed Sun WorkShop products on your local system or network. Sun WorkShop 6 HTML documents (manuals, online help, man pages, component readme files, and release notes) are available with your installed Sun WorkShop 6 products. To access the HTML documentation, do one of the following:
- In any Sun WorkShop or Sun WorkShopTM TeamWare window, choose Help
About Documentation.
- In your NetscapeTM Communicator 4.0 or compatible version browser, open the following file:
- (Contact your system administrator if your Sun WorkShop software is not installed in the
/optdirectory.) Your browser displays an index of Sun WorkShop 6 HTML documents. To open a document in the index, click the document's title.TABLE P-3 lists related Sun WorkShop 6 manuals by document collection.
TABLE P-4 describes related Solaris documentation available through the
docs.sun.comWeb site.
|
Sun Microsystems, Inc. Copyright information. All rights reserved. Feedback |
Library | Contents | Previous | Next | Index |