Digital Equipment Corporation RT-11 Introduction Manual, 1977
Total Page:16
File Type:pdf, Size:1020Kb
August 1977 This document is an introductory manual for the RT-1 1 V03 operatrng system. Its purpose is to acquaint new users with the RT-11 commands that perform common system operations. This manual presents the background material necessary to understand the system operations. It also contains a series of command examples and demonstration exercises that complement the text. INTRODUCTION TO RT-11 Order No. DEC-1 l-ORITA-A-D SUPERSESSIONbJPDATE INFORMATION: This is a new manual. OPERATING SYSTEM AND VERSION: RT-11 V03 To order additional copies of this document, contact the Software Distribution Center, Digital Equipment Corporation, Maynard, Massachusetts 01754 digital equipment corporation l maynard. massachusetts First Printing, August 1977 The information in this document is subject to change without notice and should not be construed as a commit- ment by Digital Equipment Corporation. Digital Equipment Corporation assumes no responsibility for any errors that may appear in this document. The software described in this document is furnished under a license and may be used or copied only in accordance with the terms of such license. Digital Equipment Corporation assumes no responsibility for the use or reliability of its software on equipment that is not supplied by DIGITAL. Copyright @ 1977 by Digital Equipment Corporation The postage prepaid READER’S COMMENTS form on the last page of this document requests the user’s critical evaluation to assist us in preparing future documentation. The following are trademarks of Digital Equipment Corporation: DIGITAL DECsystem-10 MASSBUS DEC DECtape OMNIBUS PDP DIBOL OS/8 DECUS EDUSYSTEM PHA UNIBUS FLIP CHIP RSTS COMPUTER LABS FOCAL RSX COMTEX INDAC TYPESET-8 DDT LAB-8 TYPESET-10 DECCOMM DECSYSTEM-20 TYPESET- 11 CONTENTS Page PREFACE ix CHAPTER 1 INTRODUCING THE RT-11 COMPUTER SYSTEM ................... l-l SYSTEM HARDWARE. ......................... l-l The Computer. ............................ l-l TheTermina 1.. ........................... 1-4~ The Storage Medium. ....................... l-6 Optional Devices. .......................... l-8 SYSTEM SOFTWARE .......................... l-10 The RT-11 Operating System ................. l-11 Language Processors ........................ 1-12 Application Packages. ....................... 1-13 SYSTEM DOCUMENTATION .................... 1-13 Hardware Manuals. ......................... 1-13 Software Manuals .......................... 1-14 Source Listings ............................ 1-14 CHAPTER 2 STARTING THE RT-11 COMPUTER SYSTEM ............................... 2-l COMPUTER MEMORY ............................ 2-l HARDWARE CONFIGURATION .................... 2- 1 Terminal....................................2- 3 Computer ................................... 2-3 System Volume. .............................. 2-3 Storage Volume. .............................. 2-3 Optional Devices and Supported Languages ......... 2-4 BOOTSTRAP PROCEDURE. ........................ 2-4 CHAPTER 3 INTERACTING WITH THE RT-11 COMPUTER SYSTEM . 3-l USING THE CONSOLE TERMINAL TO EXCHANGE INFORMATION . 3-l USING MASS STORAGE VOLUMES TO STORE INFORMATION . ...... 3-4 File Storage. _ . ...... 3-8 File Protection . ...... 3-8 CHAPTER 4 USING THE MONITOR COMMAND LANGUAGE ............................ .4-l ENTERING COMMAND INFORMATION. ............ .4-i General Command Format ..................... .4-2 Control Commands. .......................... .4-3 Recreating the Examples. ....................... 4-4 . 111 Page CORRECTING TYPING MISTAKES ............. 4-5 INITIAL MONITOR COMMAND OPERATIONS. ... 4-6 Using VT 11 Display Hardware .............. 4-6 Entering the Date and Time-of-Day. .......... 4-9 Assigning Logical Names to Devices .......... 4-10 Listing Volume Directories ................. 4-14 Initializing the Storage Volume. ............. 4-16 CHAPTER 5 CREATING AND EDITING TEXT FILES . 5-l THE RT-11 EDITOR . 5-l CREATING A TEXT FILE. 5-2 EDITING A TEXT FILE. 5-4 USING UPPER- AND LOWER-CASE CHARACTERS . 5-13 USING A GRAPHICS DISPLAY TERMINAL DURING EDITING. 5-l 6 Normal Use of the Graphics Display . 5-l 6 Immediate Mode. 5-l 7 CREATING THE DEMONSTRATION PROGRAMS . 5-20 CHAPTER 6 COMPARING TEXT FILES. ................ .6-l PERFORMING A COMPARISON. .................... 6-l CHAPTER 7 PERFORMING FILE MAINTENANCE OPERATIONS. .................. ........ 7-l FILE DIRECTORY OPERATIONS .......... ........ 7-l MULTIPLE FILE OPERATIONS ............ ........ 7-3 FILE COPYING OPERATIONS ............. ........ 7-3 FILE RENAMING OPERATIONS ........... ........ 7-5 FILE DELETION OPERATIONS. ........... ........ 7-6 FILE LISTING OPERATIONS. ............. ........ 7-7 CHAPTER 8 CHOOSING A PROGRAMMING LANGUAGE . 8-1 HIGH-LEVEL VS MACHINE-LEVEL LANGUAGES. 8-l RT-11 PROGRAMMING LANGUAGES. 8-3 CHOOSING A LANGUAGE FOR THE DEMONSTRATION . 8-4 CHAPTER 9 RUNNING A FORTRAN IV PROGRAM . 9-l THE FORTRAN IV PROGRAMMING LANGUAGE . 9-l THE FORTRAN IV LANGUAGE PROCESSOR . 9-2 USING LIBRARY MODULES . 9-2 COMPILING THE FORTRAN IV PROGRAM . 9-3 LINKING OBJECT MODULES TOGETHER . 9-9 RUNNING THE FORTRAN IV PROGRAM. 9-l 1 COMBINING OPERATIONS . 9-12 iv Page ALTERNATE FUNCTIONS ....................... .9-l 3 FILE MAINTENANCE. ........................... 9-14 CHAPTER 10 RUNNING A BASIC-l 1 PROGRAM ......... 10-l THE BASIC-l 1 PROGRAMMING LANGUAGE. ........ 1 O-l THE BASIC LANGUAGE PROCESSOR. .............. 1 O-l USING THE BASIC INTERPRETER ................. 1 O-2 Immediate Mode. ............................ 1 O-3 Creating and Editing a BASIC Program ............ 1 O-4 RUNNING A BASIC PROGRAM .................... 1 O-9 FILE MAINTENANCE. .......................... lo-13 CHAPTER 11 RUNNING A MACRO-l 1 ASSEMBLY LANGUAGE PROGRAM. ................. 1 l-l THE MACRO-l 1 ASSEMBLY LANGUAGE. ........... 1 l-l THE MACRO-l 1 LANGUAGE PRQCESSOR. .......... 1 l-2 The Program Counter ......................... 1 l-3 The Symbol Table. ........................... 1 l-4 Machine Language Code ....................... 1 l-5 ASSEMBLING THE MACRO-l 1 PROGRAM. .......... 1 l-7 LINKING OBJECT MODULES TOGETHER .......... 1 l-l 5 RUNNING THE MACRO-l 1 PROGRAM. ............ 11-17 COMBINING OPERATIONS ...................... 1 l- 18 FILE MAINTENANCE. .......................... 11-19 CHAPTER 12 LINKING OBJECT PROGRAMS. 12-l RESOLVING SYMBOLIC AND LIBRARY REFERENCES . _ 12-2 PROGRAM RELOCATION AND ADDRESS ASSIGNMENT . 12-3 Absolute and Relocatable Program Sections . 12-4 The Overlay Feature . 12-7 PRODUCING A LOAD MODULE AND A LOAD MAP. 12-7 CHAPTER 13 CONSTRUCTING LIBRARY FILES. ........ 13-1 KINDS OF LIBRARY FILES. ...................... 13-1 Macro Libraries. ............................. 13-l Object Libraries. ............................. 13-2 CREATING AND MAINTAINING A LIBRARY FILE. ... 13-2 Creating Object Library Input Files. .............. 13-3 Building the Object Library. .................... 13-5 Updating the Object Library. ................... 13-6 FILE MAINTENANCE. ........................... 13-8 V Page CHAPTER 14 DEBUGGING A USER PROGRAM. ......... 14-1 AVOIDING PROGRAMMING ERRORS .............. 14-l WHEN PROGRAMMING ERRORS OCCUR ........... 14-2 USING THE ON-LINE DEBUGGING TECHNIQUE. ..... 14-4 FILE MAINTENANCE. .......................... 14-l 3 CHAPTER 15 USING THE FOREGROUND/ BACKGROUND MONITOR . 15-1 THE FOREGROUND/BACKGROUND ENVIRONMENT . CHANGING MONITORS . USING THE FB MONITOR . Communication in a Two-Job Environment . Creating the Foreground Job. Executing the Foreground and Background Jobs................................ 15-6 FILE MAINTENANCE. 15-11 CHAPTER 16 USING INDIRECT FILES. ................ 16-1 CREATING AN INDIRECT FILE ................... 16-l Entering Monitor Commands ................... 16-2 Using the Editor to Create an Indirect File ......... 16-2 EXECUTING AN INDIRECT FILE .................. 16-4 FILE MAINTENANCE. .......................... 16-l 0 CHAPTER 17 ADVICE TO NEW USERS. ................ 17-1 APPENDIX A MANUAL BOOSTRAPPING OPERATIONS. ... A-l APPENDIX B SELECTED SYSTEM TOPICS. .............. B-l GLOSSARY ................................... Glossary-l INDEX.. ...................................... ..Index- 1 FIGURES FIGURE PREFACE-l Flowchart for Selective Reading xii l-l RT-11 Computer System. ......... l-2 l-2 PDP-11 Computers ............... l-3 l-3 Terminal Devices. ............... l-4 l-4 Random-access Storage Media and their Devices ................... l-6 l-5 Peripheral Devices. ..... , ........ l-8 l-6 RT-11 System Software .......... l-10 l-7 RT-11 Operating System. ......... l-l 1 2-l The Boostrap/Computer Relationship . 2-2 3-l LA36/VT52 Terminals ........... 3-2 vi Page 3-2 Keyboard Layouts. ................ 3-3 3-3 Mass Storage Volumes. ............. 3-6 4-l VT1 1 Display Hardware ............ 4-7 5-l Editing with RT-11 ................ 5-2 5-2 Text Window Format ............. 5-16 9-l Evolution of a FORTRAN Program ... 9-2 9-2 Function of a FORTRAN Compiler ... 9-2 9-3 Dimensions of FUN(X, Y). .......... 9-7 9-4 The Link Operation. .............. 9-10 9-5 The Result of GRAPH.SAV ........ 9-l 2 10-l Functions of the BASIC Language Processor. ...................... 1 O-2 1 l-l PDP-11 Programming Card ......... 1 i-l 11-2 Evolution of a MACRO-l 1 Program . 11-2 11-3 Function of a MACRO-l 1 Assembler . 1 l-3 1 l-4 PDP-11 Computer Memory. ........ 1 l-4 1 l-5 PDP-11 Word. ................... 1 l-6 1 l-6 The Link Operation. ............. 11-16 l2-1 Link Functions .................. 12-l 12-2 Object Module Relocation. ......... 12-5 A-l Pushbutton Console .............. .A-2 A-2 Switch Register