
M T S The Michigan Terminal System Volume 6: FORTRAN in MTS October 1983 Updated February 1988 (Update 1) The University of Michigan Computing Center Ann Arbor, Michigan ***************************************************** * * * This obsoletes the December 1978 edition. * * * ***************************************************** 1 DISCLAIMER The MTS Manual is intended to represent the current state of the Michigan Terminal System (MTS), but because the system is constantly being developed, extended, and refined, sections of this volume will become obsolete. The user should refer to the U-M___ Computing_________ News,____ Computing Center Memos, and future Updates to this volume for the latest information about changes to MTS. Copyright 1983 by the Regents of the University of Michigan. Copying is permitted for nonprofit, educational use provided that (1) each repro- duction is done without alteration and (2) the volume reference and date of publication are included. Permission to republish any portions of this manual should be obtained in writing from the Director of the University of Michigan Computing Center. 2 MTS 6: FORTRAN in MTS October 1983 Page Revised February 1988 PREFACE_______ The software developed by the Computing Center staff for the operation of the high-speed processor computer can be described as a multiprogramming supervisor that handles a number of resident, reentrant programs. Among them is a large subsystem, called MTS (Michigan Terminal System), for command interpretation, execution control, file management, and accounting maintenance. Most users interact with the computer’s resources through MTS. The MTS Manual is a series of volumes that describe in detail the facilities provided by the Michigan Terminal System. Administrative policies of the Computing Center and the physical facilities provided described in other publications. The MTS volumes now in print are listed below. The date indicates the most recent edition of each volume; however, since volumes are updated by means of CCMemos, users should check the file *CCPUBLICA- TIONS, or watch for announcements in the U-M___ Computing_________ News,____ to ensure that their MTS volumes are fully up to date. Volume 1: The____________________________ Michigan Terminal System, January 1984 Volume 2: Public________________________ File Descriptions, January 1987 Volume 3: System______________________________ Subroutine Descriptions, April 1981 Volume 4: Terminals_____________________________ and Networks in MTS, March 1984 Volume 5: System_______________ Services, May 1983 Volume 6: FORTRAN______________ in MTS, October 1983 Volume 7: PL/I___________ in MTS, September 1982 Volume 8: LISP____________________ and SLIP in MTS, June 1976 Volume 9: SNOBOL4______________ in MTS, September 1975 Volume 10: BASIC____________ in MTS, December 1980 Volume 11: Plot_______________________ Description System, August 1978 Volume 12: PIL/2____________ in MTS, December 1974 Volume 13: The_____________________________ Symbolic Debugging System, September 1985 Volume 14: 360/370_________________________ Assemblers in MTS, May 1983 Volume 15: FORMAT__________________ and TEXT360, April 1977 Volume 16: ALGOL______________ W in MTS, September 1980 Volume 17: Integrated__________________________ Graphics System, December 1980 Volume 18: The___________________ MTS File Editor, February 1988 Volume 19: Tapes______________________ and Floppy Disks, November 1986 Volume 20: Pascal_____________ in MTS, December 1985 Volume 21: MTS_________________________________ Command Extensions and Macros, April 1986 Volume 22: Utilisp______________ in MTS, February 1988 Volume 23: Messaging_________________________________ and Conferencing in MTS, March 1987 Other volumes are in preparation. The numerical order of the volumes does not necessarily reflect the chronological order of their 3 MTS 6: FORTRAN in MTS Page Revised February 1988 October 1983 appearance; however, in general, the higher the number, the more specialized the volume. Volume 1, for example, introduces the user to MTS and describes in general the MTS operating system, while Volume 10 deals exclusively with BASIC. The attempt to make each volume complete in itself and reasonably independent of others in the series naturally results in a certain amount of repetition. Public file descriptions, for example, may appear in more than one volume. However, this arrangement permits the user to buy only those volumes that serve his or her immediate needs. Richard A. Salisbury General Editor 4 MTS 6: FORTRAN in MTS October 1983 Page Revised February 1988 PREFACE___________________ TO VOLUME 6 Volume 6 contains the descriptions of the various system components related to the use of the FORTRAN programming language in MTS. Acknowledgments for the descriptions and programs contained in this volume are as follows: The section "Interactive FORTRAN" is taken from the document UBC______ IF by Dennis O’Reilly (June 1975) which was produced by the University of British Columbia Computing Centre. The program was developed by the programming staff at that installation. The subsections "FORTRAN-G Source Module Error/Warning Messages," "FORTRAN-H Optimization Facilities," and "FORTRAN-H Source Module Error/Warning Messages" are reprinted with permission from the IBM publication, IBM_____________________________________________________ System/360 Operating System FORTRAN IV (G and H) Programmer’s__________________ Guide, form GC35-0002. The subsection "The FORTRAN Debug Facility" is reprinted with permission from the IBM publication, IBM_____________________________ System/360 and System/370 FORTRAN___________________ IV Language, form GC28-6515. | The subsection "Compiler Options" of section "VS FORTRAN" is | reprinted with permission from the IBM publication, VS__________ FORTRAN | Version_____________________________ 2: Programming Guide, form SC26-4222. The remainder of the descriptions in this volume were either produced or extensively modified from other documentation by the editorial and programming staffs at the University of Michigan Computing Center. 5 MTS 6: FORTRAN in MTS Page Revised February 1988 October 1983 6 MTS 6: FORTRAN in MTS October 1983 Page Revised February 1988 Contents________ Preface . 3 Assignment Option Descriptions . 74 Preface to Volume 6 . 5 Use of FORTRAN-H As a Subroutine . 75 Overview of FORTRAN in MTS . 13 Use of the FORTRAN-H Compiler As a Stand-Alone *FTN Interface . 17 Language Processor . 80 Introduction . 17 FORTRAN-H Optimization Description of the Interface 18 Facilities . 80 Options . 19 Program Optimization . 80 Simple Option Descriptions 21 Programming Assignment Option Considerations Using the Descriptions . 26 Optimizer . 81 Input/Output Assignment . 28 Use of Loops . 83 Source Statement Formats . 29 Movement of Code into IBM Format . 29 Initialization of a Loop . 84 LONG Format . 30 Common Expression LINE Format . 30 Elimination . 85 EDITED Format . 31 Induction Variable Batch Examples . 32 Optimization . 85 Conversational Examples . 35 Register Allocation . 86 Appendix A: Input/Output COMMON Blocks . 86 Using Assignment Options . 40 EQUIVALENCE Statements . 87 Input/Output Modifiers . 41 Multidimensional Arrays . 87 Program Structure . 88 FORTRAN G . 43 Logical IF Statements . 89 Compiler Options . 44 Branching . 90 Simple Option Descriptions 45 FORTRAN-H Source Module Assignment Option Error/Warning Messages . 90 Descriptions . 48 The OPTIONS Statement . 49 VS FORTRAN . .119 Use of FORTRAN-G As a Compiling a VS FORTRAN Subroutine . 50 Program . .119 Use of the FORTRAN-G Executing a VS FORTRAN Compilers As Stand-Alone Program . .120 Language Processors . 55 Compiler Options . .120 FORTRAN-G Source Module Conflicting Compiler Error/Warning Messages . 57 Options . .126 The FORTRAN Debug Facility . 64 Modifying Compilation Debug Facility Statements . 65 Options-@PROCESS Statement 126 Programming Considerations 68 The INCLUDE Feature . .126 VS FORTRAN I/O Library . .126 FORTRAN H . 69 Introduction . 69 WATFIV . .127 Compiler Options . 69 Introduction . .127 Simple Option Descriptions 70 Logical I/O Unit Specifications . .128 7 MTS 6: FORTRAN in MTS Page Revised February 1988 October 1983 The SIZE Parameter . .129 Subroutine TRAPS . .186 Control Commands . .129 Subroutines DVCHK and Using Control Commands . .132 OVERFL . .188 /COMPILE Command Format . .134 Notes . .188 Conversational Use of WATFIV . .136 Interactive FORTRAN . .191 Job-Accounting Output . .137 Introduction . .191 Diagnostics . .137 Compatibility with Introduction to FORTRAN 66 and FORTRAN 77 .191 Diagnostic Features . .137 The Beginning IF Glossary of Terms . .140 Programmer . .192 Notes . .143 A Few Definitions . .192 Language Accepted by WATFIV .144 Immediate Execution . .193 Extensions . .144 Invoking the IF System . .193 Free-Format I/O . .148 Immediate Execution Mode .193 CHARACTER Variables . .150 Compilation of Routines . .194 Additional CHARACTER Commands for Compiling: Features . .157 /COMPOSE and /COMPILE . .194 Restrictions . .159 Creating FORTRAN Debugging Aids . .161 Programs: The /COMPOSE Incompatibilities of WATFIV .162 Command . .194 Incompatibilities with Compiling Existing WATFOR . .162 FORTRAN Programs: The Incompatibilities with /COMPILE Command . .195 FORTRAN G and H . .164 Compilation Errors and Subprogram Facilities . .166 Editing . .196 Sources of Subprograms . .166 Useful Commands Related FORTRAN-Supplied Routines .167 to Compiling Routines . .197 Subprogram Arguments . .168 Editing Routines . .199 Subprograms
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages642 Page
-
File Size-