1.1. How to Compile and Execute a FORTRAN Program. 1.2. Providing Runtime Support. 1.3. Executing a FORTRAN Program. 5. Chapter 5 - Speci fication Statements. 5.1. IMPLICIT Statement... 21 5.2.2. Array Element Name. 23 5.3.2. CHARACTER Type Statement. 24 5.4. COMMON Statement. 25 5.7. INTRINSIC Statement. 26 5.8.
1.1. How to Compile and Execute a FORTRAN Program. 1.2. Providing Runtime Support. 1.3. Executing a FORTRAN Program. 5. Chapter 5 - Speci fication Statements. 5.1. IMPLICIT Statement... 21 5.2.2. Array Element Name. 23 5.3.2. CHARACTER Type Statement. 24 5.4. COMMON Statement. 25 5.7. INTRINSIC Statement. 26 5.8.
1.1. How to Compile and Execute a FORTRAN Program. 1.2. Providing Runtime Support. 1.3. Executing a FORTRAN Program. 5. Chapter 5 - Speci fication Statements. 5.1. IMPLICIT Statement... 21 5.2.2. Array Element Name. 23 5.3.2. CHARACTER Type Statement. 24 5.4. COMMON Statement. 25 5.7. INTRINSIC Statement. 26 5.8.
UCSD p-System wy
Fortran Reference Manual
Ls
See
rsioni\TABLE OF CONTENTS
Introduction - Overview of this Manual and Notational Conventions
0.1. Manual Overview... . . 7
0.2, Notational Conventions. :
Chapter 1 - How to use SofTech Microsystems FORTRAN 77
1.1. How to Compile and Execute a FORTRAN Program... .
1.1.1. Compiling a FORTRAN program. . +... an
1.1.2. Providing Runtime Support... 222.0000 00s
1.1.3. Executing a FORTRAN program. 5... te elele
1.2. Form of Input Programs... 00. ce eee eee eee 7
1.2.1. SINCLUDE Statement. 6.0... eee eee ee :
1.3. Compiler Listing. .
1.4, Cade File... .
Chapter 2 - Basic Structure of a FORTRAN Program
2.1. Character Set. . Set ale e[olal le to adlele
2.2, Lines... 7
2.3. Columns... ele
2.4. Blanks... : 7 tataataoas
2.5. Compiler Directive Lines. tied,
2.5.1 $INCLUDE rrr
2.5.2 $USES . « atte adleclelalelelaleeatatat
2.5.3 $XREF fetetetlisled tebe ele!
2.5.4 $EXT oe sees
2.6. Comment Lines. :
2.7. Statements, Initial
Labelss. ee eee eee :
2.7.1. Labels. a :
2.7.2. Initial Lines... 2.2 :
2.7.3. Continuation Lines. . 7
2.7.4, Statements. . 2.2.2... eee :
2.8, Main Program and Subprogram Units and Ordering
Statements within Program Units. ........0.008
2.8.1. Program Units - Main Program and Subprogram
Program Units... eee lel=lolels os
2.8.2. Statement Ordering Within a Program Unit.
2.8.3. The Final Statement of a Source Program. .. .
Chapter 3 - Data Types
The Integer Type..... 2... :
The Real Type. «
Wun
15
153.3. The Logical Type... +
3.4. The Character Type. . «
Chapter 4 - FORTRAN Names
4.1. Scope of FORTRAN Names... +2 eee eee
4,2, Undeclared FORTRAN Names.
Chapter 5 - Specification Statements
5.1. IMPLICIT Statement... 0-22 cece ee ee
5.2. DIMENSION Statement. . 2... eee eee 7
5.2.1. Dimension Declarators... +. +++ ++
5.2.2. Array Element Name... see ee eee
5.3. Type Statements, elslelleiee ao
53.1. INTEGER, REAL, and LOGICAL Type Statements.
5.3.2, CHARACTER Type Statement. .. +--+ +
COMMON Statement... 6. ee ee eee ee eee
EXTERNAL Statement... eee eee eee eee
INTRINSIC Statement. ...-- +++ ee elatatee
SAVE Statement. .
. EQUIVALENCE Statement... 0. eee eee eee ee eee
5.8.1. Restrictions on EQUIVALENCE Statements... . «
Chapter 6 - DATA Statement... 2... eee ee ededol-elet ttt 7
Chapter 7 - Expressions
7.1. Arithmetic Expressions.
Jal. Integer Division.
7.1.2. Type Conversions and Result Types ot
Arithmetic Operators. . 2... ee ee eee eee
7.2, Character Expressions. . «+. «
7.3. Relational Expressions.
7.4. Logical Expressions.
75.
76.
. Precedence of Operators. .. .
* Evaluation Rules and Restrictions for Expressions. . ++. «
Chapter 8 - Assignment Statements
8.1. Computational Assignment Statements... ...- se fale lala
8.2, Label Assignment Statement.
Chapter 9 - Control Statements
9.1. Unconditional GOTO.
9.2. Computed GOTO... 6+ +
9.3. Assigned GOTO... .. . bee
16
16
37
38
39
39
409.4, Arithmetic IF...
9.5. Logical IF... +++
9.6. Block if then else.
Block IF. .
ELSEIF...
3. ELSE...
9.6.4, ENDIF...
9.7. DO. ee ee eee .
9.8. CONTINUE... . -
9.9. STOP. ...-- oe
9.10. PAUSE....---
G1l, END. wee ee ee
Chapter 10 - 1/0 System
10.1. /O System Overview... «
10.1.1. Records... . + +
10.1.2. Files... 2. +s
10.1:3. File Properties. .
1013.1. File Name. .
10.1.3.2. File Position.
10.1.3.3. Formatted and Unformatted Files. .
10.1.3.4. Sequential and Direct Access
Properties. . see eee eee
10.1.4, Internal Files... eee eee eee ee eee
10.1.4.1. Special Properties of Internal Fites.
11.5. Units. eee eee ee eee
10.2. General Discussion of 1/O System Concepts and
Limitations. 6... ee eee ee ee
10.2.1. General Discussion of FORTRAN 1/0 System. »
10.2.2. Example Program Illustrating Most Common 1/O
Operations... +++
10.2.3. Use of Less Common File Operations.
10.2.4. Limitations of the FORTRAN I/O System.
10.2.4.1. Direct Files must be Associated with
Blocked Devices.
10.2.4.2. BACKSPACE only Applies to Files
Associated with Blocked Devices.
10.2.4.3, BACKSPACE may not be Used on
Unformatted Sequential Files.
Side Effects of Functions Called
10.2.4.4.
in 1/0 Statements. .
10.3, I/O Statements... 5-1 ee ee eee see
10.3.1. Elements of 1/O Statements.
10.3.1.1. The Unit Specifier Cu’).
10.3.1.2. The Format Specifier (‘f’)
10.3.1.3, The Input-Output List (‘iolist’).
10.3.1.3.1. Input Entiti
10.3.1.3.2. Output Eni
10.3.1.3.3. Implied DO lists.
10.3.2. I/O Statements... ...-.- ++
10,3.2.1. OPEN Statement...
10.3.2.2. CLOSE Statement. . .
jes. .
41
41
as
43
a
44
44
46
4610.3.3. Restriction on 1/0 Side Effects of Functions. -
READ Statement... .......
2.4. WRITE Statement. ......
BACKSPACE Statement.......
ENDFILE Statement... ...
REWIND Statement... . . :
Chapter 11 - Formatted I/O and the FORMAT Statement
11.1. Format Specifications and the FORMAT Statement... .
11.2. Interaction between Format Spe
Edit Descriptors.......
Lh.
ication and 1/O List.. .
11.3.1. Nonrepeatable Edit Descriptors... sss eee
11.3.2, Repeatable Edit Descriptors. ... .
“xxxx" (Apostrophe Editing). . 2...
H (Hollerith Editing).
3, X (Positional Editing. .......6
11,3.1.4, / (Slash Editing)... . - Stott edad
7 \ @ackslash Editing)... ... 6...
113.16. P (Geale Factor Editing). 1...
1.3.1.7. BN and BZ (Blank Interpretation). .
le
1.1, F, and E (Numeric Editing,
General Description). ......
11.3.2.2. | (integer Editing... 2+... a
1.3.2.3. F (Real Editing). 6... 2. eee
11,3.2.4. E (Real Editing)... ee. eee eee
1.3.2.5. L (Logical Editing)... ss... eee
1.3.2.6. A (Character Editing)..... 0...
Chapter 12 - Programs, Subroutines and Functions
12.1, Main Program. .
12.2.
12.3.
12.4,
12.5.
Subroutines.
12.2.1, SUBROUTINE Statement. J. 2 ssc. ccs.
12.2.2, CALL Statement.......... eee
Funct
. External Functions...» bee
. Intrinsic Functions... . 6... 2.4% bee
. Statement Functions... ... 2+ e eee ee
RETURN Statement. 26... eee ee eee eee
Parameters.
Chapter 13 - Compilation Units
13.1,
13.2.
13.3,
Units, Segments, Partial Compilation, and FORTRAN.
The $USES Compiler Directive. ......-+ 2+
1. Separate Compilati
Linking Pascal and FORTRAN.
13,
61
63
63
63
65
66
67
68
68
68
68
68
69
69
69
70
70
7
n
72
72
2B
3
74
75
15
76
76
77
78
83
84
85
85
88Appendix A - Differences Between SofTech Miscrosystems FORTRAN 77
and ANSI Standard Subset FORTRAN 77
A.1. Unsupported Features...» +
AS!
AS!
Full-Language Features. . . .
Extensions to Standard. . .
Appendix B - FORTRAN Error Messages
B.1. Compile-Time Error Messages.
B.2. Run-Time Error Messages... . «
a
a
92
95
99TDI Limited, 29 Alma Vale Road, Bristol BS8 2HL
Tel: 0272 742796
Time Sharing Developments Inc.
Suite 34, 620 Hungerford Drive, Rockville, Maryland.
Tel: (301) 340-8700