{"service":"corpus","corpus":"gutenberg","source":"Project Gutenberg","license":"Public domain (per item)","citation":"https://www.gutenberg.org/","record":{"id":"50468","title":"The Oak Ridge ALGOL Compiler for the Control Data Corporation 1604","text":"The Project Gutenberg eBook of The Oak Ridge ALGOL Compiler for the Control Data Corporation 1604\n    \nThis eBook is for the use of anyone anywhere in the United States and\nmost other parts of the world at no cost and with almost no restrictions\nwhatsoever. You may copy it, give it away or re-use it under the terms\nof the Project Gutenberg License included with this eBook or online\nat www.gutenberg.org. If you are not located in the United States,\nyou will have to check the laws of the country where you are located\nbefore using this eBook.\n\nTitle: The Oak Ridge ALGOL Compiler for the Control Data Corporation 1604\n\nAuthor: L. L. Bumgarner\n\n\n        \nRelease date: November 17, 2015 [eBook #50468]\n                Most recently updated: October 22, 2024\n\nLanguage: English\n\nOther information and formats: www.gutenberg.org/ebooks/50468\n\nCredits: Produced by David Starner, Stephen Hutcheson, and the\n        Online Distributed Proofreading Team at http://www.pgdp.net\n        (This book was produced from images made available by the\n        HathiTrust Digital Library.)\n\n\n*** START OF THE PROJECT GUTENBERG EBOOK THE OAK RIDGE ALGOL COMPILER FOR THE CONTROL DATA CORPORATION 1604 ***\n\n                               ORNL-3460\n                    UC-32—Mathematics and Computers\n                          TID-4500 (23rd ed.)\n\n\n\n\n   THE OAK RIDGE ALGOL COMPILER FOR THE CONTROL DATA CORPORATION 1604\n                    PRELIMINARY PROGRAMMER'S MANUAL\n\n\n                            L. L. Bumgarner\n\n                     OAK RIDGE NATIONAL LABORATORY\n                              operated by\n                       UNION CARBIDE CORPORATION\n                                for the\n                     U.S. ATOMIC ENERGY COMMISSION\n\n            Printed in USA. Price: $1.25 Available from the\n                      Office of Technical Services\n                      U. S. Department of Commerce\n                          Washington 25, D. C.\n\n                              LEGAL NOTICE\n\nThis report was prepared as an account of Government sponsored work.\nNeither the United States, nor the Commission, nor any person acting on\nbehalf of the Commission:\n\n  A. Makes any warranty or representation, expressed or implied, with\n  respect to the accuracy, completeness, or usefulness of the\n  information contained in this report, or that the use of any\n  information, apparatus, method, or process disclosed in this report\n  may not infringe privately owned rights; or\n\n  B. Assumes any liabilities with respect to the use of, or for damages\n  resulting from the use of any information, apparatus, method, or\n  process disclosed in this report.\n\nAs used in the above, “person acting on behalf of the Commission”\nincludes any employee or contractor of the Commission, or employee of\nsuch contractor, to the extent that such employee or contractor of the\nCommission, or employee of such contractor prepares, disseminates, or\nprovides access to, any information pursuant to his employment or\ncontract with the Commission, or his employment with such contractor.\n\n                                                               ORNL-3460\n\n\n                       Contract No. W-7405-eng-26\n\n\n                          Mathematics Division\n\n     THE OAK RIDGE ALGOL COMPILER FOR THE CONTROL DATA CORPORATION\n                  1604—PRELIMINARY PROGRAMMER’S MANUAL\n\n                            L. L. Bumgarner\n\n\n                              DATE ISSUED\n                              JAN 30 1964\n\n\n                     OAK RIDGE NATIONAL LABORATORY\n                          Oak Ridge, Tennessee\n                              operated by\n                       UNION CARBIDE CORPORATION\n                                for the\n                     U.S. ATOMIC ENERGY COMMISSION\n\n\n\n\n                                CONTENTS\n\n\n  I. Introduction                                                      1\n  II. Language Restrictions                                            2\n  III. Modes of Operation of the Compiler                              4\n  IV. Input-Output and Intermediate Tape                               5\n      Input-Output                                                     5\n      READ                                                             5\n      PAGE                                                             7\n      Lists and the List Declaration                                   7\n      PRINT                                                            9\n      WRITE                                                            9\n      PUNCH                                                           10\n      Formats and the Format Declaration                              10\n      INPUT                                                           11\n      OUTPUT                                                          12\n      Intermediate Tape Procedures                                    13\n      BINREAD                                                         13\n      BINWRITE                                                        14\n      ENDFILE                                                         14\n      REWIND                                                          14\n      BACKUP                                                          14\n      Tape-Checking Procedures                                        14\n      EOF                                                             15\n      READERR                                                         15\n      WRITERR                                                         15\n  V. The External Declaration                                         16\n  VI. Standard Procedures                                             16\n  VII. Error Checking and Diagnostics                                 17\n  VIII. Running Programs                                              19\n      ALGOL Control System                                            20\n      EOP Card                                                        20\n      Compile and Execute: ALGO                                       21\n      PROGRAM Card                                                    22\n      Compile/Execute: ALDAP                                          22\n      ALDAP Control Statement                                         22\n      Job Deck: ALDAP Compilation/Execution                           23\n      Examples                                                        25\n\n\n                                APPENDICES\n  A. Adjuncts to Algol 60                                             30\n  B. Hardware Representation                                          32\n  C. Structure of Procedure Calling Sequence                          35\n  D. Internal Representation of Strings                               37\n  E. Program Efficiency                                               38\n  F. Controversial Features of Algol 60                               40\n  G. Fortran Subprograms in an Algol Program                          41\n\n\n\n\n      THE OAK RIDGE ALGOL COMPILER FOR THE CONTROL DATA CORPORATION\n                   1604—PRELIMINARY PROGRAMMER’S MANUAL\n\n\n                            L. L. Bumgarner\n\n\n                                ABSTRACT\n\n  This document is a preliminary programmer’s manual for use of the\n  Control Data 1604 Algol Compiler. The compiler was constructed by the\n  Programming Research Group of the Mathematics Division in cooperation\n  with Control Data Corporation. A knowledge of Algol 60 is assumed.\n  Included are descriptions of input-output facilities and details for\n  operation under the monitor system.\n\n\n\n\n                            I. Introduction\n\n\nThis document is to serve as a programmer’s manual for the Algol\ncompiler constructed as a cooperative project by Control Data\nCorporation and the Mathematics Division of Oak Ridge National\nLaboratory. The compiler is designed for the Control Data 1604 and\n1604-A computers. The document is preliminary in that the compiler is\nnot thoroughly tested and may undergo further development.\n\nThe reader is assumed to be familiar with Algol 60. The defining\ndescriptions are the two reports on Algol 60 available in the following\nreferences:\n\n  1. P. Naur et al, “Report on the Algorithmic Language Algol 60,” Comm.\n  Assoc. Comp. Mach., 3 (1960), No. 5, 299-314.\n\n  2. P. Naur et al, “Revised Report on the Algorithmic Language Algol\n  60,” Comm. Assoc. Comp. Mach., 6 (1963), No. 1, 1-17.\n\nThe second report clears up certain ambiguities that appeared in the\nfirst report. The reports are not easy reading for the novice. The\nfollowing expositions are more readable:\n\n  1. Baumann, Bauer, Feliciano and Samelson, Introduction to Algol,\n  Prentice-Hall, Inc. (to be published in late 1963).\n\n  2. Bottenbruch, H., “Structure and Use of Algol 60,” Jour. Assoc.\n  Comp. Mach., 9 (1962), No. 2, 161-221, and ORNL-3148.\n\nThe Baumann publication also contains the revised Algol 60 report.\n\nThroughout this document various examples of statements and declarations\nappear without the semicolon which is always required for separating\nthem. This is to avoid the implication that the semicolon is part of the\nstatement or the declaration. In sentences, a comma or period may appear\nwhere a semicolon or other delimiter would be indicated in the context\nof a program.\n\nWord delimiters rendered in bold-face type in the Algol report are\nherein indicated by underlining.\n\n\n\n\n                       II. Language Restrictions\n\n\nThe compiler correctly handles programs written in Algol 60 subject to\nthe following restrictions.\n\n1. The use of an integer label as an actual parameter will cause an\nincorrect program to be compiled.\n\n2. A GO TO statement with an undefined switch designator as the\ndesignational expression will cause incorrect operation of the final\nprogram.\n\n3. Type restrictions:\n\n  (a) The exponentiation expression x ↑ y will have type real unless x\n  is of type integer and y is a non-negative integer constant. This\n  differs slightly from the definition in the Algol report but will\n  generally cause no difficulty.\n\n  (b) In the construction\n\n  <if clause> <simple arithmetic expression>\n  else <arithmetic expression>\n\nthe arithmetic expressions must have the same type, or else an incorrect\nprogram will be compiled. For example, in the statement\n\n  x := if a < b then z else w\n\nz and w should both be declared real or both integer.\n\n(c) In a procedure call (procedure statement or function call) each\nactual parameter having an arithmetic value must have the same type as\nthe corresponding formal parameter in the procedure declaration. The\ntype of the formal parameter is that designated in the specification\npart if it appears there. If a formal parameter representing an\narithmetic quantity does not appear in the specification part, it is\nassumed to be specified real. Full use of specifications is desirable\nfor descriptive purposes and for optimization.\n\nCaution. Restriction (c) is more likely to cause errors than the other\nrestrictions. It is very easy to write P(1,2) when the parameters of P\nare specified real, but incorrect coding will result. The call\nP(1.0,2.0) works correctly.\n\n4. Standard procedure names (see section VI) used as parameters in\nprocedure calls will cause an incorrect program to be compiled. A call,\ntherefore, such as\n\n  P(sin)\n\nis incorrect. Note, however, that a call of the type\n\n  Q(sin(x))\n\ncauses no trouble. The case P(sin) can be programmed in another way.\nMake the declaration\n\n  real procedure sin 1 (t); real t;\n  sin 1 := sin(t).\n\nThe call\n\n  P(sin 1)\n\nis then correct.\n\n5. Arrays called by value are not handled. If an array identifier\nappears in the value part, an incorrect program will be compiled.\n\n6. “Dynamic” own arrays are not handled. This means that all own arrays\nare treated as having constant subscript bounds; this constitutes one\npossible interpretation of the Algol 60 report. An own array may be\ndeclared with variable subscript bounds, but only one allocation of\nstorage will be made, and if the bounds change, this will be ignored.\n\n7. Recursive procedures are not handled. This restriction encompasses\nall cases of a function designator appearing in the actual parameter\npart of a call of the same function, unless that function is a standard\nfunction. Thus f(f(x)) is not permitted in general, but sin(sin(x)) is\nallowed.\n\n\n\n\n                III. Modes of Operation of the Compiler\n\n\nThere are two distinct modes of operation: ALGO and ALDAP.\n\nALGO is a compile-and-execute mode in which the two phases cannot be\nseparated. The Algol program is translated into a machine language\nprogram in core memory, and execution of the program immediately and\nautomatically follows. There is no assembly program phase.\n\nALDAP makes use of the CODAP assembly program facilities. It is possible\nto compile procedures separately and reference them from an Algol\nprogram. The procedures may be written in Algol, CODAP or Fortran. This\nprovision is made possible with the aid of the external declaration\ndiscussed in section V.\n\nThe ALGO mode provides significantly faster compilation than the ALDAP\nmode for most programs. The target programs produced in the two modes\nare essentially the same. In the ALGO mode, program checkout may be done\nat the Algol language level. In the ALDAP mode, checkout may also be\ndone at the machine and assembly language levels, and modifications may\nbe made at these levels.\n\n\n\n\n                 IV. Input-Output and Intermediate Tape\n\n\nThere are seven standard procedures for input-output, five for\nintermediate tape, and three for checking tape conditions. Two\ndeclarations, format and list, are additions to the language.\n\n\n                              Input-Output\n\nThe input-output procedures are: READ, PAGE, PRINT, WRITE, PUNCH, INPUT,\nand OUTPUT.\n\n\n                                  READ\n\nThe READ procedure is used to input numbers and Boolean values. A READ\nstatement has the form\n\n  READ (V1, V2, ..., Vn)\n\nwhere n is any positive integer and each Vk is a variable. For example,\nthe statement\n\n  READ (X, Y, A[1], B[1])\n\nwill input values into the four variables listed. For inputing values\ninto an array, a statement such as the following might be used:\n\n  for I := 1 step 1 until 100 do READ (A[I]) .\n\nThe READ procedure inputs numbers and truth values. A number must be a\nlegal Algol number (although an E may be substituted for the symbol ₁₀).\nFor input into a Boolean variable, the truth values true and false are\naccepted; also, a non-negative number or a plus sign is interpreted as\nfalse and a negative number or a minus sign is interpreted as true. A\nblank is read as zero.\n\nWith the READ procedure, the type of a number on a data card does not\nhave to be the same as the type of the variable to which it is assigned.\nAny necessary type conversions are done automatically. If N is the next\nnumber in the data, the statement\n\n  READ (V)\n\nis equivalent to the statement\n\n  V := N .\n\nThe data cards are free field. The number of values per card, the length\nof numbers, and the number of spaces are arbitrary. A comma, however,\nmust follow each number, including the last one on the last data card.\n\nIn reading a value into a subscripted variable, the current value of the\nsubscript expression is not affected by that READ statement. For\nexample, in the statement\n\n  READ (I, A[I])\n\nthe old value of I is used in A[I].\n\nThe READ procedure will input data from the standard input medium only.\n\n\n                                  PAGE\n\nThe PAGE procedure is used to cause a page ejection on the standard\noutput medium. PAGE has no parameters. It is called by simply writing\n\n  PAGE .\n\n\n                     Lists and the List Declaration\n\nThe input and output procedures described in the rest of this section,\nas well as the binary read and write procedures, make use of the concept\nof a list. A list[1] is a sequence of expressions. An example is\n\n  U + V, C[0], if B then X else Y .\n\nIt may be inconvenient in some cases to write down all of the\nexpressions explicitly. The loop expression[1] may be used as a\nshorthand device in a list. It is an Algol-like construction of which\nthe following is an example:\n\n  for I := 1 step 1 until 1000 do A[I] .\n\nThis is equivalent to the list\n\n  A[1], A[2], ..., A[1000] .\n\nThe entity following do in a loop expression may itself be a list, but\nthis list must be enclosed in parentheses if it contains more than one\nmember.\n\nThe loop expression\n\n  for I := 1 step 1 until 1000 do (A[I], B[I])\n\nis equivalent to the list\n\n  A[1], B[1], A[2], B[2], ..., A[1000], B[1000] .\n\nThe loop expression\n\n  for I := 1 step 1 until 10 do (A[I], for J := 1\n  step 1 until 20 do B[I,J])\n\nis equivalent to the list\n\n  A[1], B[1,1], B[1,2], ..., B[1,20],\n  A[2], B[2,1], B[2,2], ..., B[2,20],\n  ....................................\n  A[10], B[10,1], B[10,2], ..., B[10,20] .\n\nA list may be given a name through a list declaration. A list\ndeclaration has the form\n\n  list identifier := list .\n\nExamples are:\n\n  list L := X, A + B\n\n  list M := for I := 1 step 1 until N do A[I] .\n\nA list identifier may itself appear in a list. One of the above examples\nmight be written with the aid of the following declaration:\n\n  list L := for J := 1 step 1 until 20 do B[I,J] .\n\nThe loop expression is then\n\n  for I:= 1 step 1 until 10 do (A[I], L) .\n\nA list declaration obeys the same rules of syntax and scope as do other\ndeclarations.\n\nA list identifier may be used as an actual parameter of a procedure\ncall, with the requirement that the corresponding formal parameter be\nspecified list. However, an actual list may appear as a parameter only\nin calls of the standard procedures, as described.\n\n\n                                 PRINT\n\nThe PRINT procedure is used to output numbers in a simple, rigid manner.\nA PRINT statement has the form\n\n  PRINT (list),\n\nwhere list is described above. An example of a PRINT statement is\n\n  PRINT (A, if N = 0 then S else T).\n\nA PRINT statement always puts out at least one line printer image. A\nline may contain up to 6 numbers, each of which is in scientific\nnotation with 10 decimal places. Each number is right-justified in a\nfield of 20 columns. (The format is 6E20.10.) The above PRINT statement\nwill output two numbers in the first forty spaces, and the rest of the\nline will be blank. A PRINT statement such as\n\n  PRINT (for I := 1 step 1 until 10 do A[I])\n\nwill output one line of 6 numbers followed by one line of 4 numbers.\nSingle spacing between lines is automatic.\n\nThe PRINT procedure always outputs on the standard output medium.\n\n\n                                 WRITE\n\nThe WRITE procedure is used to output strings. Examples of WRITE\nstatements are:\n\n  WRITE ('TABLE')\n\n  WRITE (if D < 0 then 'TRUE' else 'FALSE') .\n\nEach parameter must be a string expression (see Appendix A for\ndefinition of string expression). There may be any number of parameters,\nbut each string will appear on a separate line. If a string is too long\nto go on one line, it will be continued on the next line. A string\nshould not contain another string. Lines are single spaced. Each WRITE\nstatement causes at least one line printer image to be put out.\n\nThe WRITE procedure always outputs on the standard output medium.\n\n\n                                 PUNCH\n\nThe PUNCH procedure is used to output numbers on punched cards in a form\nwhich can be input by the READ procedure. Each number punched will be\nfollowed by a comma. Each card punched may contain up to four numbers.\nEach number will be of type real, but since the READ procedure makes any\nnecessary type conversions this is unimportant. A PUNCH statement has\nthe same form as a PRINT statement. Each PUNCH statement causes at least\none card image to be put out.\n\nThe PUNCH procedure always outputs on the standard punch medium.\n\n\n                   Formats and the Format Declaration\n\nThe two input and output procedures remaining to be described make use\nof formats. The formats are exactly those used in Fortran, and readers\nunfamiliar with Fortran will find it necessary to refer to the Control\nData Fortran-62 Reference Manual for details on the use of formats.\n\nA format is treated as a string. Formats will be written, for example,\nas follows:\n\n  '(6E20.10)'\n\n  '(1H0, 9X, 5HTABLE, I3)' .\n\nNote that the parentheses are part of the format, and both parentheses\nand string quotes are required.\n\nAs will be indicated below, a format string may appear explicitly in an\nINPUT or OUTPUT statement. If the same format string is used more than\nonce, however, it may be convenient to give it a name through a format\ndeclaration. A format declaration has the form\n\n  format Identifier := '(Fortran format)' .\n\nExamples are:\n\n  format F := '(6E20.10)'\n\n  format G := '(1H0, 9X, 5HTABLE, I3)' .\n\nA format declaration obeys the same rules of syntax and scope as do\nother declarations.\n\nFormat identifiers may be used as parameters, and format is a specifier.\n\n\n                                 INPUT\n\nThe INPUT procedure is used to input numbers and Hollerith information\nin accordance with Fortran-type formats. An INPUT statement has one of\nthe forms\n\n  INPUT (M,F,list)\n\n  INPUT (M,F)\n\nwhere:\n\n(1) M is the logical unit designation. M may be any arithmetic\nexpression. If it is not integral-valued, the action\n\n  M := entier (M + 0.5)\n\nwill take place. The standard input unit is 50.\n\n(2) F is a format expression. It may be an actual format string, a\nformat identifier, a conditional format expression, or any variable\nwhich contains the starting address of a format string. Caution. In the\ncase of a conditional format expression, format strings and format\nidentifiers should not be mixed. For example, (a) and (b) below are\npermitted, but (c) will cause an incorrect program to be compiled:\n\n  (a) if B then '(E20.7)' else '(E20.6)'\n  (b) if B then F1 else F2\n  (c) if B then F1 else '(E20.6)' .\n\n(3) list is as defined previously. Of course, for INPUT all expressions\nmust be variables.\n\nThe following are examples of an INPUT statement:\n\n  INPUT (50, '(4E20.8)', N, for I := 1 step 1 until N do A[I]).\n\n  INPUT (if A < B then M else N, F, X, Y, Z) .\n\nEach INPUT statement causes at least one card image to be read.\n\nNote that the INPUT procedure does not make type checks between the data\nand the program variables. A floating point number, for example, is\nstored as such regardless of the type of the variable to which it is\nassigned.\n\nCaution. It is strongly recommended that not both READ and INPUT be used\nin the same program. Each buffers ahead one card image. Furthermore,\neach INPUT statement causes at least one card image to be read while a\nREAD statement may not cause a new card image to be read. Mixing the two\nstatements will require quite careful use of blank cards in the data to\nallow for the buffering.\n\n\n                                 OUTPUT\n\nThe OUTPUT procedure is used to output numbers and Hollerith information\nin accordance with Fortran-type formats. An OUTPUT statement has one of\nthe forms\n\n  OUTPUT (M,F)\n  OUTPUT (M,F,list)\n\nwhere M, F, and list are as indicated above. The following are examples\nof OUTPUT statements:\n\n  OUTPUT (51, '(5HTABLE)')\n\n  OUTPUT (51, '(1H0,9X,10E10.2)', for I := 1 step 1 until 100 do A[I]) .\n\nEach OUTPUT statement causes at least one line printer image to be put\nout. The standard output unit is 51, and the standard punch unit is 52.\n\n\n                      Intermediate Tape Procedures\n\nThere are five standard procedures for making use of magnetic tape for\nauxiliary storage:\n\nBINREAD, BINWRITE, ENDFILE, REWIND and BACKUP.\n\n\n                                BINREAD\n\nA BINREAD statement has the form\n\n  BINREAD (M, list)\n\nwhere M and list are the same as for INPUT. Each BINREAD statement\ncauses the designated unit to move forward one logical record, reading\nin binary format into the variables of the list. If fewer variables\nappear in the list than are on the record, only those values are read\nand the tape moves on to the end of the record. If more variables appear\nin the list than are on the record, this is treated as an error and the\nprogram is terminated.\n\nThe following is an example of a BINREAD statement:\n\n  BINREAD (6, for I := 1 step 1 until 1000 do A[I]) .\n\n\n                                BINWRITE\n\nA BINWRITE statement has the form\n\n  BINWRITE (M, list)\n\nwhere M and list are the same as for OUTPUT. Each BINWRITE statement\ncauses the values of the list expressions to be written in one logical\nrecord in binary format on the designated unit.\n\n\n                                ENDFILE\n\nAn ENDFILE statement has the form\n\n  ENDFILE (M)\n\nwhere M is a unit designation as before. The statement causes an\nend-of-file record to be written on the designated unit.\n\n\n                                 REWIND\n\nA REWIND statement has the form\n\n  REWIND (M)\n\nwhere M is a unit designation as before. The statement causes the\ndesignated unit to be rewound to the load point.\n\n\n                                 BACKUP\n\nA BACKUP statement has the form\n\n  BACKUP (M)\n\nwhere M is a unit designation as before. The statement causes the\ndesignated unit to be backspaced one logical record of binary\ninformation or one physical record of BCD information.\n\n\n                        Tape-Checking Procedures\n\nThe checking procedures are: EOF, READERR, and WRITERR. These are\nBoolean procedures.\n\n\n                                  EOF\n\nAn EOF call has the form\n\n  EOF (M)\n\nwhere M is a logical unit designation as before. It yields the value\ntrue if the previous read operation encountered an end-of-file or the\nprevious write operation encountered an end-of-tape; otherwise it yields\nthe value false.\n\nAn example of the use of an EOF call is:\n\n  if EOF(6) then goto ALARM .\n\n\n                                READERR\n\nA READERR call has the form\n\n  READERR (M)\n\nwhere M is a logical unit designation as before. It yields the value\ntrue if the previous read operation produced a parity error; otherwise\nit yields the value false.\n\nREADERR should not be used for testing the operation of a READ\nstatement. The READ procedure has its own facilities for checking,\nmaking multiple attempts in case of errors, and terminating the program\nif necessary.\n\n\n                                WRITERR\n\nA WRITERR call has the form\n\n  WRITERR (M)\n\nwhere M is a logical unit designation as before. It yields the value\ntrue if the previous write operation produced a parity error; otherwise\nit yields the value false.\n\n\n\n\n                      V. The External Declaration\n\n\nAn external declaration is required for each nonstandard library\nprocedure or procedure compiled separately from the calling program,\nwhether in Algol, Fortran or CODAP. Standard Algol procedures are\ndescribed in Section VI. Note that a CODAP subroutine must take account\nof the special structure of the Algol calling sequence as described in\nAppendix C or be treated as a Fortran subprogram. The use of Fortran\nsubprograms is described in Appendix G.\n\nThe external declaration has one of the following forms:\n\n  external I1, ..., In\n  real external I1, ..., In\n  integer external I1, ..., In\n  Boolean external I1, ..., In\n\nwhere each Ik is an identifier and n is any positive integer. A type\ndeclarator preceding the declarator external signifies a function\nprocedure having that type. Note that no information about parameters\nappears in an external declaration. See Appendix A for syntactical\ndefinition.\n\nIn the ALGO mode, LIB cards must be included in the job deck for\nnonstandard library routines, in addition to the external declarations.\nDetails are found in Section VIII.\n\n\n\n\n                        VI. Standard Procedures\n\n\nCertain procedures are used without being declared. These include the\nstandard functions listed in the Algol 60 report and the input-output\nand intermediate tape procedures. The complete list is as follows:\n\n  ABS\n  SIGN\n  SQRT\n  SIN\n  COS\n  ARCTAN\n  LN\n  EXP\n  ENTIER\n  EOF\n  READERR\n  WRITERR\n  FORTRANF\n  FTNF\n  READ\n  PAGE\n  PRINT\n  WRITE\n  PUNCH\n  INPUT\n  OUTPUT\n  BINREAD\n  BINWRITE\n  ENDFILE\n  REWIND\n  BACKUP\n  FORTRAN\n  FTN\n\nThese procedures are global to the program. They behave as though\ndeclared in a fictitious block surrounding the entire program.\n\n\n\n\n                  VII. Error Checking and Diagnostics\n\n\nIn a complete compilation the compiler makes two passes on the Algol\nsource program. If errors which the compiler cannot correct are detected\nin the first pass, then the second, or translation, pass will not be\nmade. The following types of errors are detected:\n\n\n  1. syntactical error\n  2. undeclared identifier\n  3. identifier declared twice in the same block head\n  4. misspelled delimiter (corrected in many cases)\n  5. missing escape symbol (corrected unless both are missing for the\n          same delimiter, in which case the delimiter is treated as an\n          identifier).\n\n\nThe program listing and any diagnostics always appear on the standard\noutput medium. In the case of a syntactical error, a message will appear\nin the program listing one or several lines below the error. The\nlocation of the error in the program will be further pinpointed in the\nline of symbols immediately below the error message. This line will be a\nshort portion of the program with the last symbol in the line being the\none which indicates the error. For example, a declaration might be out\nof place as follows:\n\n                    .\n                    .\n                    .\n          x := a + b; 'INTEGER' K;\n\n  **** LAST CHARACTER INDICATES SYNTACTICAL ERROR.\n\n  x := a + b; INTEGER\n                  .\n                  .\n                  .\n\nIn some cases the line below the message may differ slightly from the\ncorresponding string of symbols above; for example, an identifier might\nbe rendered by Ident. It is possible for a single syntactical error to\ncause more than one diagnostic.\n\nA few syntactical errors are corrected by the compiler, and a message is\nput out to this effect. An example is a semicolon immediately preceding\nelse.\n\nAccording to the comment conventions of Algol, any string of symbols\nfollowing end and not containing end, else or a semicolon is treated as\ncomment. As a result, the omission of one of these symbols following end\ndoes not always cause an error in compilation but will cause a portion\nof the program to be skipped over by the compiler. Thus for example, in\n\n  ... x := a + b end for i := 1 step 1 ...\n\nthe FOR statement will be skipped at least in part. The compiler will\nput out a caution message in this and some other cases, but it will not\nchange the program.\n\nIf an identifier is not declared (or possibly declared in the wrong\nplace), a message is put out below the program listing together with the\nundeclared identifier.\n\nThe compiler does not check the type of identifiers. Therefore, such\nerrors as a Boolean variable in an arithmetic expression, or the\nbrackets of a subscripted variable replaced by parentheses, are not\ndetected, and an incorrect program may be compiled.\n\n\n\n\n                         VIII. Running Programs\n\n\nThe Algol program is punched on cards in the hardware representation\ndescribed in Appendix B. The format is essentially free field: spaces\nhave no significance except within escape symbols and string quotes.\nOnly the first 72 columns, however, are interpreted by the compiler. The\nremaining columns may be used for identification purposes. Care must be\ntaken when a string is continued onto the next card, as the continuation\nwill begin in column 1. The program listing will have the same format as\nthe cards.\n\nIn the following discussion the symbol Ø signifies the letter O where\nnecessary for emphasis, and the symbol Δ signifies a 7-9 punch in card\ncolumn 1.\n\n\n                          ALGOL Control System\n\nThe compiler operates under the ALGOL Control System. This system is a\nsubordinate control routine of the Master Control System of the CO-OP\nMonitor Programming System. ALGOL is quite similar to the subordinate\ncontrol routine COOP.\n\nALGOL is called with an MCS (Master Control System) card having ALGOL\npunched beginning in column 2. Other details of this card are available\nin descriptions of the CO-OP Monitor. It should be noted in selecting a\nstandard recovery procedure that the concept of COMMON is not used in\nAlgol.\n\nFollowing the MCS card will be a control card giving instructions to the\ncontrol routine ALGOL. It will name one of the following routines: ALGO,\nALDAP, EXECUTE, BINARY, FORTRAN, REWIND or DEFINE. These will be\ndiscussed below.\n\n\n                                EOP Card\n\nThe EOP (end-of-program) card has the characters 'EØP' punched in\ncolumns 10-14.\n\nIn the ALGO mode, one EOP card must be used to terminate the program.\n\nIn the ALDAP mode, one EOP card must be used to terminate each Algol\nprogram or Algol procedure being compiled separately.\n\n\n                       Compile and Execute: ALGO\n\nThe ALGO mode of running an Algol program is the simplest and the\nfastest. It will be the more suitable for a large number of programs.\nUnless the programmer has special reasons for using the ALDAP mode, the\nALGO mode is recommended.\n\nThe Algol program must be self-contained except for standard procedures\nand library procedures on the library-systems tape. The job deck must\nhave the following cards in the specified order:\n\n\n  1. MCS control card.\n\n      The subordinate control routine name must be ALGØL.\n  2. ALGOL control card.\n\n      This will appear as\n\n      ΔALGØ. or ΔALGØ,t. where t is an integer specifying a time limit\n          in minutes for compilation and execution.\n\n      (The period is required on every control card.)\n  3. LIB cards.\n\n      If necessary. One LIB card is required for each non-standard\n          library procedure called in the program, namely those declared\n          external. The format of a LIB card is as follows: the\n          characters LIB punched in columns 10-12 and the name of a\n          library entry point beginning in column 20. There may be no\n          more than 20 LIB cards.\n  4. PROGRAM card.\n\n      If desired. This may be used to identify the program. Its format\n          is described in the next paragraph.\n  5. Algol program deck.\n  6. EOP card.\n  7. Data.\n\n      If required.\n\n\n                              PROGRAM Card\n\nThe PROGRAM card is optional. It is useful for identification purposes,\nand in the ALDAP mode it serves to name the program entry point.\n\nThe format of the card is free field. The characters PRØGRAM must appear\nfollowed by the program name, which must be alphanumeric.\n\n\n                         Compile/Execute: ALDAP\n\nThe ALDAP mode is used to compile an Algol program or procedure to a\nrelocatable binary or a CODAP format. Execution is optional. For\ncompilation only, the program deck may consist of any mixture of Algol\nprograms and procedures, any number of which may be in CODAP. If\nexecution is desired, part or all of the program deck may have been\npreviously compiled, so that the deck may have Algol, CODAP and\nrelocatable binary cards.\n\n\n                        ALDAP Control Statement\n\nThe format of the ALDAP statement is:\n\n  ΔALDAP,L,B,n.\n\nwhere\n\n\n    L is a program listing key,\n\n    B is a punched card output key,\n\n    n is a logical unit number.\n\n\nA period may terminate the statement at any point, with remaining fields\ntreated as zero.\n\nIf the program listing key (L) is a 1, an assembled listing of the CODAP\nobject code will be produced on the standard output medium. If the key\nis zero or blank, no such listing will be produced. A listing of the\nAlgol program and any diagnostics will always be produced on the\nstandard output medium.\n\nIf the punched card output key (B) is a 1, a relocatable binary deck\nwill be produced on the standard punch medium. If the key is a 2, a\nCODAP symbolic deck will be produced on the standard punch medium. If\nthe key is a 3, both a symbolic deck and a relocatable binary deck will\nbe produced on the standard punch medium, with the symbolic deck\nappearing first. If the key is zero or blank, no deck will be produced.\n\nThe logical unit number (n) specifies the unit which is to be the\nload-and-go tape if it is one of the integers 1-49 or 56. If n is some\nother integer or blank, no load-and-go tape will be written. The\nload-and-go tape is required when execution of the program is to follow.\n\nExamples:\n\n\n  (a) ΔALDAP, 1, 1, 56.\n\n\nThis statement will cause the Algol/CODAP deck to be compiled, an\nassembled listing to be produced on the standard output medium, a\nrelocatable binary deck to be produced on the standard punch medium, and\na load-and-go tape written on logical unit 56.\n\n\n  (b) ΔALDAP, 1.\n\n\nThis statement will cause the Algol/CODAP deck to be compiled, and an\nassembled listing to be produced on the standard output medium.\n\n\n                 Job Deck: ALDAP Compilation/Execution\n\nFor compilation only of an Algol/CODAP program deck, the job deck should\ncontain the following cards in the specified order:\n\n\n  1. MCS control card.\n\n      With ALGØL as the subordinate control routine name.\n  2. ALGOL control card.\n\n      With the appropriate ALDAP control statement.\n  3. PROGRAM card.\n\n      If desired.\n  4. Program deck.\n\n      Any mixture of Algol and CODAP programs and procedures, with all\n          their subroutines except the standard procedures and those on\n          the library-systems tape. Each Algol program or procedure must\n          be terminated by an EOP card.\n  5. FINIS card.\n\n      This card contains the characters FINIS punched in columns 10-14.\n          It signals the end of all compilations.\n\n\nFor compilation and execution of an Algol/CODAP program deck, a\nload-and-go tape must be requested in the ALDAP control statement. If no\nrelocatable binary cards follow the last subprogram to be compiled, then\nthe program deck must be terminated by an EOP card which is in addition\nto the EOP card or END card (the latter for a CODAP subprogram) which\nterminates the last program or procedure. The FINIS card then follows\nthis additional EOP card. An EOP card always causes a TRA card image to\nbe written on the load-and-go tape.\n\nThe control statements EXECUTE, BINARY, FORTRAN, REWIND and DEFINE may\nbe used as described in the “CO-OP Monitor Programmer’s Guide”. BINARY\nis useful for loading a relocatable binary deck onto the load-and-go\ntape prior to compilation of an Algol calling program, where the\nsubprogram in relocatable form might have the same name as a library\nroutine. If the Algol program preceded the relocatable deck, the library\nroutine would be fetched by the loader and an error indication given.\n\nThe CO-OP control statements LOAD and EXECUTER are not used by ALGOL.\n\n\n                                Examples\n\nEach of the following examples describes a job deck which illustrates a\ndifferent way of compiling and executing the same Algol program. The\nprogram calls a library procedure with entry point named BESSEL, and the\nprogram contains at least one other procedure. On the MCS card only the\nfirst field is indicated, as the others may vary from one installation\nto another.\n\n\n\n\n                               Example 1\n\n\nThis job uses the ALGØ mode.\n\n  ΔALGØL, ... .\n\n  ΔALGØ.\n\n          LIB BESSEL\n\n        PRØGRAM SAMPLE\n\n        Algol Program (with external declaration of BESSEL)\n\n          'EØP'\n\n        Data\n\n\n\n\n                               Example 2\n\n\nThis job uses the ALDAP mode, compiling the entire program at once. The\nALDAP control statement calls for an assembled listing, a binary deck,\nand a load-and-go tape on logical unit 56. The execute card gives a two\nminute time limit on the execution.\n\n  ΔALGØL, ... .\n\n  ΔALDAP,1,1,56.\n\n        PRØGRAM SAMPLE\n\n        Algol Program (with external declaration of BESSEL)\n\n          'EØP'\n\n          'EØP'\n\n          FINIS\n\n  ΔEXECUTE,2.\n\n        Data\n\n\n\n\n                               Example 3\n\n\nThis job consists simply of the execution of the relocatable program\ndeck obtained in example 2.\n\n  ΔALGØL, ... .\n\n  ΔEXECUTE,2.\n\n        Relocatable Deck\n\n        Data\n\n\n\n\n                               Example 4\n\n\nThis example is similar to example 2. Here the main program and one of\nits procedures are to be compiled separately.\n\n  ΔALGØL, ... .\n\n  ΔALDAP,1,1,56.\n\n        PRØGRAM SAMPLE\n\n        Algol Program (with external declaration of both BESSEL and the\n              procedure being compiled separately)\n\n          'EØP'\n\n        Algol Procedure\n\n          'EØP'\n\n          'EØP'\n\n          FINIS\n\n  ΔEXECUTE,2.\n\n        Data\n\n\n\n\n                               Example 5\n\n\nIn this example the procedure which was compiled separately in example 4\nis being compiled by itself, i.e., the calling program is not in the\ndeck at all. Of course there is no execution in this case. Note that no\nload-and-go tape is requested and only one EOP card is used. There\ncannot be a PROGRAM card.\n\n  ΔALGØL, ... .\n\n  ΔALDAP,1,1.\n\n        Algol Procedure\n\n          'EØP'\n\n          FINIS\n\n\n\n\n                               Example 6\n\n\nHere the procedure compiled by itself in example 5 appears in the\nprogram deck in relocatable binary form, while the calling program is in\nthe Algol language.\n\n  ΔALGØL, ... .\n\n  ΔALDAP,1,1,56.\n\n        PRØGRAM SAMPLE\n\n        Algol Program (with external declaration of both BESSEL and the\n              procedure in relocatable form)\n\n          'EØP'\n\n          FINIS\n\n  ΔEXECUTE,2.\n\n        Relocatable Deck\n\n        Data\n\nThe relocatable deck here must be terminated by two TRA cards. One of\nthese is generated by the compiler when it processes the EOP card which\nmust terminate the procedure for compilation, as in example 5. The\nsecond TRA card can be obtained by using a second EOP card, as in\nexample 2. Alternatively, the second TRA card can be added to the\nrelocatable deck before execution. Note that this second TRA card must\nnot be used when the relocatable deck is loaded by a BINARY control\nstatement. This is illustrated in the next example.\n\n\n\n\n                               Example 7\n\n\nIn this case the previously compiled procedure has the same name as a\nroutine on the library-systems tape.\n\n  ΔALGØL, ... .\n\n  ΔBINARY,56.\n\n        Relocatable Deck (terminated by one TRA card)\n\n  ΔALDAP,1,1,56.\n\n        PRØGRAM SAMPLE\n\n        Algol Program (with external declaration of both BESSEL and the\n              procedure in relocatable form)\n\n          'EØP'\n\n          'EØP'\n\n        FINIS\n\n  ΔEXECUTE, 2.\n\n        Data\n\nThe logical unit number on the BINARY control statement must agree with\nthat which specifies the load-and-go tape in the ALDAP control\nstatement.\n\n\n\n\n                               APPENDIX A\n                          Adjuncts to Algol 60\n\n\n                             List Entities\n\nThe delimiter list is a declarator and a specifier.\n\n  <list identifier> ::= <identifier>\n\n  <loop expression> ::= <for clause> <arithmetic expression>\n        | <for clause> <loop expression>\n        | <for clause> (<list>)\n\n  <list element> ::= <arithmetic expression>\n        | <loop expression>\n        | <list identifier>\n\n  <list> ::= <list element>\n        | <list>, <list element>\n\n  <list declaration> ::= list <list identifier> := <list>\n\n\n                            Format Entities\n\nThe delimiter format is a declarator and a specifier.\n\n  <format identifier> ::= <identifier>\n\n  <simple format expression> ::='(<Fortran format>[2])'\n        | <format identifier>\n\n  <format expression> ::= <simple format expression>\n        | <if clause> <simple format expression>\n          else <format expression>\n\n  <format declaration> ::= format <format identifier> := <format\n              expression>\n\n\n                           String Expression\n\n  <string expression> ::= <string>\n        | <if clause> <string>\n          else <string expression>\n\n\n                          External Declaration\n\nThe delimiter external is a declarator.\n\n  <external identifier> ::= <identifier>\n\n  <external list> ::= <external identifier>\n        | <external identifier>, <external list>\n\n  <external declaration> ::= external <external list>\n        | <type> external <external list>\n\n\n\n\n                               APPENDIX B\n                        Hardware Representation\n\n\nOne keypunch character is reserved as an “escape symbol”, which we shall\nhere suppose is the apostrophe. This symbol is used to delineate word\ndelimiters and truth values, which are written in boldface type in Algol\nreference language and publication language and indicated by underlining\nin this manual. The hardware representation of a word delimiter such as\nbegin is therefore 'BEGIN'. No distinction is made between upper and\nlower case letters in the hardware language.\n\nThe transliteration rules for the non-word delimiters are comprised in\nthe following table. This assumes a 48 character hardware set and is\nconsistent with the usage in the ALCOR group. For some basic symbols\nalternatives are tolerated, as indicated.\n\n    Reference        Hardware           Tolerated Hardware\n        <              'LS'                   'LESS'\n        ≤              'LQ'         'LSEQ', 'NOTGREATER', 'NOT\n                                             GREATER'\n        =              'EQ'                  'EQUAL'\n        ≥              'GQ'       'GREQ', 'NOTLESS', 'NOT LESS'\n        >              'GR'                 'GREATER'\n        ≠              'NQ'          'NTEQ', 'NOTEQUAL', 'NOT\n                                              EQUAL'\n        ¬              'NOT'\n        ∧              'AND'\n        ∨              'OR'\n        ⊃             'IMP'             'IMPLIES', 'IMPL'\n        ≡             'EQV'                  'EQUIV'\n        ₁₀              '                    'E','T'\n        ×                *\n        ↑               **                   'POWER'\n        ÷               //                    'DIV'\n        :               ..\n        ;               $                       .,\n        :=              =                    .=, ..=\n        [               (/\n        ]               /)\n        ‘               \"                      '('\n        ’               \"                      ')'\n\nIn the case of the string quotes, the tolerated symbols are required for\nthe inner strings of a nest of strings.\n\nActually, the compiler can tolerate many other spellings of word\ndelimiters because of its facility for correcting misspellings.\n\nThe delimiter go to is accepted with or without the space between the\ntwo words, but it is treated as a single delimiter: 'GOTO' or 'GO TO'.\n\nThe compiler can also accept a 64 character hardware representation: the\nfull set available on the line printer. In preparing programs,\noverpunching is used on the 48 character keypunch in this case. The\ntable below indicates the keypunching rules in use at Oak Ridge National\nLaboratory.\n\n    Reference        Hardware\n        <            1-8 punch\n        ≤            1-5 punch\n        ≥            1-9 punch\n        >            2-7 punch\n        ≠            2-6 punch\n        ∧            3-7 punch\n        ∨            2-4 punch\n        ₁₀           1-6 punch\n        ↑            2-5 punch\n        ÷            3-5 punch\n        :            2-8 punch\n        ;            2-9 punch\n        [            3-6 punch\n        ]            3-4 punch\n\nThe other basic symbols are either in the 48 character set or are\nreplaced by word delimiters as above. The symbol := is treated as two\nsymbols in the 64 character set, and = is punched as such.\n\n\n\n\n                               APPENDIX C\n                Structure of Procedure Calling Sequence\n\n\nThe following information is necessary for the user writing a non-Algol\nprocedure to be called from an Algol program. The calling sequence\ndiffers from that found in many other languages.\n\nThe first word of the non-Algol procedure must have a simple jump\ninstruction in its upper half, and the exit line is provided by a jump\nto this first word. The entry automatically causes the proper return\naddress to be placed in the address portion of the first half-word.\n\nUpon entry to the procedure, index register six contains an address\nwhich is used to reference each parameter. To establish linkage with the\nfirst parameter, the instruction\n\n  LDA 6 0\n\nis performed. This brings into the accumulator a word of one of the\nfollowing types:\n\n  1. SLJ 0 ENA V\n  2. SLJ 0 RTJ L\n\nIn case (1), V is the address of the parameter. In case (2), L is the\nstarting address of a piece of coding for computing the address of the\nparameter and leaving it in the accumulator (if the parameter is an\nexpression, the address in the accumulator will be that of a temporary\ncontaining its value). Case (1) always holds if the parameter is a\nsimple variable, string, array identifier, switch identifier, or\nprocedure identifier. In case (2) the same temporary will be used for\nall the expressions.\n\nBoth cases can be provided for by setting aside two locations for each\nparameter in the procedure body and placing the instruction\n\n  SLJ *-1\n\nin the upper half of each second location. Then after\n\n  LDA 6 0\n\nmentioned above,\n\n  STA RES1,\n\nwhere RES1 is the first reserved location for the first parameter, makes\nthe two locations into a closed subroutine. After this, the instruction\n\n  RTJ RES1\n\ncauses the address of the first parameter to be placed in the\naccumulator anytime it is performed. This accommodates expressions\ncalled by name.\n\nIn general, the K^th parameter is referenced as above, but beginning\nwith\n\n  LDA 6 (K - 1).\n\nThis description does not apply to the standard procedures, each of\nwhich has its own special calling sequence.\n\n\n\n\n                               APPENDIX D\n                   Internal Representation of Strings\n\n\nThe address representing a string is that of the first word of string\ncharacters. Each left string quote is represented internally by the word\n\n  00 ... 03454 ,\n\nand each right string quote by\n\n  00 ... 05474 .\n\nThe characters of the string which are not string quotes are packed in\nBCD eight characters per word. These words are in the natural order, the\nfirst immediately following the left string quote and the last\nimmediately followed by the right string quote. If the last word before\na right quote is not full, the rest of that word is filled out with\nzeros (not BCD blanks).\n\n\n\n\n                               APPENDIX E\n                           Program Efficiency\n\n\nThe following information may be of interest to programmers desiring an\nefficient program:\n\n  1. The FOR statement is defined with more generality than is useful in\n  most programs. In particular, the arithmetic expressions in the FOR\n  clause are allowed to change in value during execution of the FOR\n  statement. The compiler does not attempt to determine which FOR\n  statements make use of this flexibility and treats all of them in the\n  most general way. Therefore, in a statement such as\n\n  for I := 1 step M + N until abs(A - B) do ... ,\n\n  the expression M + N is evaluated twice for each iteration, and the\n  expression abs(A - B) is evaluated once for each iteration. If M, N, A\n  , and B do not change in the loop, this is unnecessary. Such\n  inefficiency can be avoided by programming in a slightly different\n  way. The above example can be written as follows:\n\n  T1 := M + N; T2 := abs(A - B) ;\n  for I := 1 step T1 until T2 do ... .\n\n  2. The concept of call by value is a device applied to procedures to\n  eliminate unneeded flexibility in procedure calls. If a parameter\n  having a value is referenced more than once in the procedure body and\n  the flexibility of call by name is not needed, then the program is\n  more efficient if the parameter is included in the value part of the\n  procedure heading. If such a parameter is referenced only once, it is\n  more efficient if it is not included in the value part.\n\n  3. Array identifiers which are parameters should be specified.\n\n\n\n\n                               APPENDIX F\n                   Controversial Features of Algol 60\n\n\nA few features of the language have been subject to more than one\ninterpretation. Fortunately, the vast majority of programs will not\ninvolve these ambiguities, but for the few that do it will be necessary\nto know what decisions the compiler makes. This appendix indicates these\ndecisions for the more controversial areas.\n\n  1. Side effects in function designators. The evaluation of primaries\n  in expressions is not strictly left to right allowing for precedence\n  rules. In particular, the value of a variable in an expression is\n  never stored in a temporary simply to preserve its value from change\n  by the evaluation of a function designator in the expression.\n  Otherwise, the evaluation does proceed from left to right and\n  according to precedence rules, including the referencing of formal\n  parameters and the calculation of the address of subscripted\n  variables. All function designators are evaluated in Boolean\n  expressions.\n\n  2. Own variables and arrays in procedures. The own quantities local to\n  the body of a procedure which is called from more than one point in a\n  program record the history of the procedure as opposed to a history of\n  each point of reference. In other words, only one copy of the own\n  quantities is preserved.\n\n\n\n\n                               APPENDIX G\n                Fortran Subprograms in an Algol Program\n\n\nThe standard procedures FORTRAN, FORTRANF, FTN, and FTNF are used to\ncall compiled Fortran subroutines and functions from within an Algol\nprogram. Each procedure has one parameter which is a call of the desired\nFortran subprogram. The Fortran subprogram must be declared external as\ndescribed in Section V.\n\nThe use of these procedures simply causes a Fortran calling sequence to\nbe generated by the compiler. Of course the subprogram could be written\nin CODAP as well as Fortran, provided it is designed to link through a\nFortran-type calling sequence.\n\nThe procedures are used as follows:\n\n\n  FORTRAN—generates a Fortran 62 calling sequence for a subroutine\n  FORTRANF—generates a Fortran 62 calling sequence for a function\n  FTN—generates a Fortran 63 calling sequence for a subroutine\n  FTNF—generates a Fortran 63 calling sequence for a function\n\n\nEach of these procedures is standard, i.e., available without\ndeclaration. FORTRANF and FTNF are used in expressions.\n\nExamples:\n\n  x := FTNF (ALPHA(T,A[0,0]))\n\n  FORTRAN (SUB(I + J)) .\n\nThe following restrictions must be observed: labels, procedures with no\nparameters, standard procedure names, and array names cannot be used as\narguments of a call of a Fortran subprogram. However, in the case of an\narray, the subscripted variable which is the first element of the array\nwill satisfy a Fortran subroutine which has an array name as a formal\nparameter. The name of the Fortran subprogram cannot be a formal\nparameter. Literals must be enclosed in string quotes.\n\n\n\n\n                               Footnotes\n\n\n[1]See Appendix A for syntactical definition.\n\n[2]For definition of Fortran format, see Control Data Fortran-62\n   Reference Manual.\n\n\n                             Acknowledgment\n\nThe author was greatly assisted in the preparation of this document by\nseveral persons who have contributed labors or advice to the\nconstruction of the compiler. These include N. B. Alexander and A. A.\nGrau, also K. A. Wolf of Control Data Corporation, and especially R. G.\nStueland of Control Data Corporation.\n\n                               ORNL-3460\n                    UC-32—Mathematics and Computers\n                          TID-4500 (23rd ed.)\n\n\n\n\n                         INTERNAL DISTRIBUTION\n\n\n  1. Biology Library\n  2-4. Central Research Library\n  5. Reactor Division Library\n  6-7. ORNL--Y-12 Technical Library Document Reference Section\n  8-27. Laboratory Records Department\n  28. Laboratory Records, ORNL R.C.\n  29. R. K. Adams\n  30. Nancy Alexander\n  31. E. D. Arnold\n  32. Don Arnurius\n  33. George J. Atta\n  34. Susie E. Atta\n  35. S. J. Ball\n  36. J. E. Bigelow\n  37. R. E. Biggers\n  38. Craig Brandon\n  39. J. C. Bresee\n  40-41. L. L. Bumgarner\n  42. W. R. Burrus\n  43. H. P. Carter\n  44. D. K. Cavin\n  45. Arline Culkowski\n  46. W. Davis, Jr.\n  47. H. J. de Bruin\n  48. P. B. DeNee\n  49. A. C. Downing\n  50. L. C. Emerson\n  51. Margaret Emmett\n  52. R. L. Ferguson\n  53. B. R. Fish\n  54. P. A. Haas\n  55. M. Feliciano\n  56. Barbara Ann Flores\n  57. T. B. Fowler\n  58. R. E. Funderlic (K-25)\n  59. D. A. Gardiner\n  60. C. D. Griffies\n  61. D. A. Griffin\n  62. D. G. Gosslee\n  63. M. T. Harkrider\n  64. M. C. Hill\n  65. A. S. Householder\n  66. W. H. Jordan\n  67. H. W. Joy\n  68. F. B. K. Kam\n  69. George Kidd\n  70. L. J. King\n  71. Ann Klein\n  72. K. A. Kraus\n  73. C. E. Larson\n  74. M. E. LaVerne\n  75. Elmon Leach\n  76. R. P. Leinius\n  77-78. M. P. Lietzke\n  79. Erlie McDaniel\n  80. C. D. Martin\n  81. K. O. Martin\n  82. Betty F. Maskewitz\n  83. R. P.  Milford\n  84. F. L. Miller, Jr.\n  85. R. V. Miskell\n  86. S. E. Moore\n  87. J. F. Murdock\n  88. C. W. Nestor, Jr.\n  89. V. K. Pare\n  90. Carl E. Parker\n  91. S. K. Penny\n  92. A. M. Perry\n  93. D. C. Ramsey\n  94. M. T. Robinson\n  95. R. M. Rush\n  96. Y. Shima\n  97. J. E. Simpkins\n  98. M. J. Skinner\n  99. C. D. Scott\n  100. C. D. Susano\n  101. J. A. Swartout\n  102. M. E. Tsagaris\n  103. D. K. Trubey\n  104. J. S. Watson\n  105. A. M. Weinberg\n  106. M. E. Whatley\n  107. C. S. Williams\n  108. H. A. Wright\n  109. Y-12 Central Files\n  110. J. H. Zeigler (K-25)\n  111. H. Zeldes\n\n\n\n\n                         EXTERNAL DISTRIBUTION\n\n\n  112. T. H. Elrod, Control Data Corporation, Computer Division, 3330\n          Hillview Avenue, Palo Alto, California\n  113. A. A. Grau, Department of Mathematics, Northwestern University,\n          Evanston, Illinois\n  114. R. G. Stueland, Control Data Corporation, Computer Division, 3330\n          Hillview Avenue, Palo Alto, California\n  115. K. A. Wolf, Control Data Corporation, Programing Systems, 501\n          Park Avenue, Minneapolis 15, Minnesota\n  116. R. A. Zemlin, Control Data Corporation, Computer Division, 3330\n          Hillview Avenue, Palo Alto, California\n  117. Research and Development Division, AEC, ORO\n  118-728. Given distribution as shown in TID-4500 (23rd ed.) under\n          Mathematics and Computers category (75 copies--OTS)\n\n\n\n\n                          Transcriber’s Notes\n\n\n  In the HTML version, represented code in a monospaced font, with\n          keywords in boldface as in the Revised Report.\n  Corrected a few palpable typos.\n  Created an original cover image, using elements from the printed book,\n          for free and unrestricted use with this eBook.\n\n\n\n\n\n\n\n\n\n*** END OF THE PROJECT GUTENBERG EBOOK THE OAK RIDGE ALGOL COMPILER FOR THE CONTROL DATA CORPORATION 1604 ***\n\n\n    \n\nUpdated editions will replace the previous one—the old editions will\nbe renamed.\n\nCreating the works from print editions not protected by U.S. copyright\nlaw means that no one owns a United States copyright in these works,\nso the Foundation (and you!) can copy and distribute it in the United\nStates without permission and without paying copyright\nroyalties. Special rules, set forth in the General Terms of Use part\nof this license, apply to copying and distributing Project\nGutenberg™ electronic works to protect the PROJECT GUTENBERG™\nconcept and trademark. Project Gutenberg is a registered trademark,\nand may not be used if you charge for an eBook, except by following\nthe terms of the trademark license, including paying royalties for use\nof the Project Gutenberg trademark. If you do not charge anything for\ncopies of this eBook, complying with the trademark license is very\neasy. You may use this eBook for nearly any purpose such as creation\nof derivative works, reports, performances and research. Project\nGutenberg eBooks may be modified and printed and given away—you may\ndo practically ANYTHING in the United States with eBooks not protected\nby U.S. copyright law. Redistribution is subject to the trademark\nlicense, especially commercial redistribution.\n\n\nSTART: FULL LICENSE\n\nTHE FULL PROJECT GUTENBERG™ LICENSE\n\nPLEASE READ THIS BEFORE YOU DISTRIBUTE OR USE THIS WORK\n\nTo protect the Project Gutenberg™ mission of promoting the free\ndistribution of electronic works, by using or distributing this work\n(or any other work associated in any way with the phrase “Project\nGutenberg”), you agree to comply with all the terms of the Full\nProject Gutenberg License available with this file or online at\nwww.gutenberg.org/license.\n\nSection 1. General Terms of Use and Redistributing Project Gutenberg\nelectronic works\n\n1.A. By reading or using any part of this Project Gutenberg\nelectronic work, you indicate that you have read, understand, agree to\nand accept all the terms of this license and intellectual property\n(trademark/copyright) agreement. If you do not agree to abide by all\nthe terms of this agreement, you must cease using and return or\ndestroy all copies of Project Gutenberg electronic works in your\npossession. If you paid a fee for obtaining a copy of or access to a\nProject Gutenberg electronic work and you do not agree to be bound\nby the terms of this agreement, you may obtain a refund from the person\nor entity to whom you paid the fee as set forth in paragraph 1.E.8.\n\n1.B. “Project Gutenberg” is a registered trademark. It may only be\nused on or associated in any way with an electronic work by people who\nagree to be bound by the terms of this agreement. There are a few\nthings that you can do with most Project Gutenberg electronic works\neven without complying with the full terms of this agreement. See\nparagraph 1.C below. There are a lot of things you can do with Project\nGutenberg electronic works if you follow the terms of this\nagreement and help preserve free future access to Project Gutenberg\nelectronic works. See paragraph 1.E below.\n\n1.C. The Project Gutenberg Literary Archive Foundation (“the\nFoundation” or PGLAF), owns a compilation copyright in the collection\nof Project Gutenberg electronic works. Nearly all the individual\nworks in the collection are in the public domain in the United\nStates. If an individual work is unprotected by copyright law in the\nUnited States and you are located in the United States, we do not\nclaim a right to prevent you from copying, distributing, performing,\ndisplaying or creating derivative works based on the work as long as\nall references to Project Gutenberg are removed. Of course, we hope\nthat you will support the Project Gutenberg mission of promoting\nfree access to electronic works by freely sharing Project Gutenberg\nworks in compliance with the terms of this agreement for keeping the\nProject Gutenberg name associated with the work. You can easily\ncomply with the terms of this agreement by keeping this work in the\nsame format with its attached full Project Gutenberg License when\nyou share it without charge with others.\n\n1.D. The copyright laws of the place where you are located also govern\nwhat you can do with this work. Copyright laws in most countries are\nin a constant state of change. If you are outside the United States,\ncheck the laws of your country in addition to the terms of this\nagreement before downloading, copying, displaying, performing,\ndistributing or creating derivative works based on this work or any\nother Project Gutenberg work. The Foundation makes no\nrepresentations concerning the copyright status of any work in any\ncountry other than the United States.\n\n1.E. Unless you have removed all references to Project Gutenberg:\n\n1.E.1. The following sentence, with active links to, or other\nimmediate access to, the full Project Gutenberg License must appear\nprominently whenever any copy of a Project Gutenberg work (any work\non which the phrase “Project Gutenberg” appears, or with which the\nphrase “Project Gutenberg” is associated) is accessed, displayed,\nperformed, viewed, copied or distributed:\n\n    This eBook is for the use of anyone anywhere in the United States and most\n    other parts of the world at no cost and with almost no restrictions\n    whatsoever. You may copy it, give it away or re-use it under the terms\n    of the Project Gutenberg™ License included with this eBook or online\n    at www.gutenberg.org. If you\n    are not located in the United States, you will have to check the laws\n    of the country where you are located before using this eBook.\n  \n1.E.2. If an individual Project Gutenberg electronic work is\nderived from texts not protected by U.S. copyright law (does not\ncontain a notice indicating that it is posted with permission of the\ncopyright holder), the work can be copied and distributed to anyone in\nthe United States without paying any fees or charges. If you are\nredistributing or providing access to a work with the phrase “Project\nGutenberg” associated with or appearing on the work, you must comply\neither with the requirements of paragraphs 1.E.1 through 1.E.7 or\nobtain permission for the use of the work and the Project Gutenberg\ntrademark as set forth in paragraphs 1.E.8 or 1.E.9.\n\n1.E.3. If an individual Project Gutenberg electronic work is posted\nwith the permission of the copyright holder, your use and distribution\nmust comply with both paragraphs 1.E.1 through 1.E.7 and any\nadditional terms imposed by the copyright holder. Additional terms\nwill be linked to the Project Gutenberg License for all works\nposted with the permission of the copyright holder found at the\nbeginning of this work.\n\n1.E.4. Do not unlink or detach or remove the full Project Gutenberg\nLicense terms from this work, or any files containing a part of this\nwork or any other work associated with Project Gutenberg.\n\n1.E.5. Do not copy, display, perform, distribute or redistribute this\nelectronic work, or any part of this electronic work, without\nprominently displaying the sentence set forth in paragraph 1.E.1 with\nactive links or immediate access to the full terms of the Project\nGutenberg License.\n\n1.E.6. You may convert to and distribute this work in any binary,\ncompressed, marked up, nonproprietary or proprietary form, including\nany word processing or hypertext form. However, if you provide access\nto or distribute copies of a Project Gutenberg work in a format\nother than “Plain Vanilla ASCII” or other format used in the official\nversion posted on the official Project Gutenberg website\n(www.gutenberg.org), you must, at no additional cost, fee or expense\nto the user, provide a copy, a means of exporting a copy, or a means\nof obtaining a copy upon request, of the work in its original “Plain\nVanilla ASCII” or other form. Any alternate format must include the\nfull Project Gutenberg License as specified in paragraph 1.E.1.\n\n1.E.7. Do not charge a fee for access to, viewing, displaying,\nperforming, copying or distributing any Project Gutenberg works\nunless you comply with paragraph 1.E.8 or 1.E.9.\n\n1.E.8. You may charge a reasonable fee for copies of or providing\naccess to or distributing Project Gutenberg electronic works\nprovided that:\n\n    • You pay a royalty fee of 20% of the gross profits you derive from\n        the use of Project Gutenberg works calculated using the method\n        you already use to calculate your applicable taxes. The fee is owed\n        to the owner of the Project Gutenberg trademark, but he has\n        agreed to donate royalties under this paragraph to the Project\n        Gutenberg Literary Archive Foundation. Royalty payments must be paid\n        within 60 days following each date on which you prepare (or are\n        legally required to prepare) your periodic tax returns. Royalty\n        payments should be clearly marked as such and sent to the Project\n        Gutenberg Literary Archive Foundation at the address specified in\n        Section 4, “Information about donations to the Project Gutenberg\n        Literary Archive Foundation.”\n    \n    • You provide a full refund of any money paid by a user who notifies\n        you in writing (or by e-mail) within 30 days of receipt that s/he\n        does not agree to the terms of the full Project Gutenberg™\n        License. You must require such a user to return or destroy all\n        copies of the works possessed in a physical medium and discontinue\n        all use of and all access to other copies of Project Gutenberg™\n        works.\n    \n    • You provide, in accordance with paragraph 1.F.3, a full refund of\n        any money paid for a work or a replacement copy, if a defect in the\n        electronic work is discovered and reported to you within 90 days of\n        receipt of the work.\n    \n    • You comply with all other terms of this agreement for free\n        distribution of Project Gutenberg™ works.\n    \n\n1.E.9. If you wish to charge a fee or distribute a Project\nGutenberg™ electronic work or group of works on different terms than\nare set forth in this agreement, you must obtain permission in writing\nfrom the Project Gutenberg Literary Archive Foundation, the manager of\nthe Project Gutenberg™ trademark. Contact the Foundation as set\nforth in Section 3 below.\n\n1.F.\n\n1.F.1. Project Gutenberg volunteers and employees expend considerable\neffort to identify, do copyright research on, transcribe and proofread\nworks not protected by U.S. copyright law in creating the Project\nGutenberg™ collection. Despite these efforts, Project Gutenberg™\nelectronic works, and the medium on which they may be stored, may\ncontain “Defects,” such as, but not limited to, incomplete, inaccurate\nor corrupt data, transcription errors, a copyright or other\nintellectual property infringement, a defective or damaged disk or\nother medium, a computer virus, or computer codes that damage or\ncannot be read by your equipment.\n\n1.F.2. LIMITED WARRANTY, DISCLAIMER OF DAMAGES - Except for the “Right\nof Replacement or Refund” described in paragraph 1.F.3, the Project\nGutenberg Literary Archive Foundation, the owner of the Project\nGutenberg™ trademark, and any other party distributing a Project\nGutenberg™ electronic work under this agreement, disclaim all\nliability to you for damages, costs and expenses, including legal\nfees. YOU AGREE THAT YOU HAVE NO REMEDIES FOR NEGLIGENCE, STRICT\nLIABILITY, BREACH OF WARRANTY OR BREACH OF CONTRACT EXCEPT THOSE\nPROVIDED IN PARAGRAPH 1.F.3. YOU AGREE THAT THE FOUNDATION, THE\nTRADEMARK OWNER, AND ANY DISTRIBUTOR UNDER THIS AGREEMENT WILL NOT BE\nLIABLE TO YOU FOR ACTUAL, DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE OR\nINCIDENTAL DAMAGES EVEN IF YOU GIVE NOTICE OF THE POSSIBILITY OF SUCH\nDAMAGE.\n\n1.F.3. LIMITED RIGHT OF REPLACEMENT OR REFUND - If you discover a\ndefect in this electronic work within 90 days of receiving it, you can\nreceive a refund of the money (if any) you paid for it by sending a\nwritten explanation to the person you received the work from. If you\nreceived the work on a physical medium, you must return the medium\nwith your written explanation. The person or entity that provided you\nwith the defective work may elect to provide a replacement copy in\nlieu of a refund. If you received the work electronically, the person\nor entity providing it to you may choose to give you a second\nopportunity to receive the work electronically in lieu of a refund. If\nthe second copy is also defective, you may demand a refund in writing\nwithout further opportunities to fix the problem.\n\n1.F.4. Except for the limited right of replacement or refund set forth\nin paragraph 1.F.3, this work is provided to you ‘AS-IS’, WITH NO\nOTHER WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT\nLIMITED TO WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PURPOSE.\n\n1.F.5. Some states do not allow disclaimers of certain implied\nwarranties or the exclusion or limitation of certain types of\ndamages. If any disclaimer or limitation set forth in this agreement\nviolates the law of the state applicable to this agreement, the\nagreement shall be interpreted to make the maximum disclaimer or\nlimitation permitted by the applicable state law. The invalidity or\nunenforceability of any provision of this agreement shall not void the\nremaining provisions.\n\n1.F.6. INDEMNITY - You agree to indemnify and hold the Foundation, the\ntrademark owner, any agent or employee of the Foundation, anyone\nproviding copies of Project Gutenberg™ electronic works in\naccordance with this agreement, and any volunteers associated with the\nproduction, promotion and distribution of Project Gutenberg™\nelectronic works, harmless from all liability, costs and expenses,\nincluding legal fees, that arise directly or indirectly from any of\nthe following which you do or cause to occur: (a) distribution of this\nor any Project Gutenberg work, (b) alteration, modification, or\nadditions or deletions to any Project Gutenberg work, and (c) any\nDefect you cause.\n\nSection 2. Information about the Mission of Project Gutenberg\n\nProject Gutenberg is synonymous with the free distribution of\nelectronic works in formats readable by the widest variety of\ncomputers including obsolete, old, middle-aged and new computers. It\nexists because of the efforts of hundreds of volunteers and donations\nfrom people in all walks of life.\n\nVolunteers and financial support to provide volunteers with the\nassistance they need are critical to reaching Project Gutenberg’s\ngoals and ensuring that the Project Gutenberg collection will\nremain freely available for generations to come. In 2001, the Project\nGutenberg Literary Archive Foundation was created to provide a secure\nand permanent future for Project Gutenberg and future\ngenerations. To learn more about the Project Gutenberg Literary\nArchive Foundation and how your efforts and donations can help, see\nSections 3 and 4 and the Foundation information page at www.gutenberg.org.\n\nSection 3. Information about the Project Gutenberg Literary Archive Foundation\n\nThe Project Gutenberg Literary Archive Foundation is a non-profit\n501(c)(3) educational corporation organized under the laws of the\nstate of Mississippi and granted tax exempt status by the Internal\nRevenue Service. The Foundation’s EIN or federal tax identification\nnumber is 64-6221541. Contributions to the Project Gutenberg Literary\nArchive Foundation are tax deductible to the full extent permitted by\nU.S. federal laws and your state’s laws.\n\nThe Foundation’s business office is located at 41 Watchung Plaza #516,\nMontclair NJ 07042, USA, +1 (862) 621-9288. Email contact links and up\nto date contact information can be found at the Foundation’s website\nand official page at www.gutenberg.org/contact\n\nSection 4. Information about Donations to the Project Gutenberg\nLiterary Archive Foundation\n\nProject Gutenberg™ depends upon and cannot survive without widespread\npublic support and donations to carry out its mission of\nincreasing the number of public domain and licensed works that can be\nfreely distributed in machine-readable form accessible by the widest\narray of equipment including outdated equipment. Many small donations\n($1 to $5,000) are particularly important to maintaining tax exempt\nstatus with the IRS.\n\nThe Foundation is committed to complying with the laws regulating\ncharities and charitable donations in all 50 states of the United\nStates. Compliance requirements are not uniform and it takes a\nconsiderable effort, much paperwork and many fees to meet and keep up\nwith these requirements. We do not solicit donations in locations\nwhere we have not received written confirmation of compliance. To SEND\nDONATIONS or determine the status of compliance for any particular state\nvisit www.gutenberg.org/donate.\n\nWhile we cannot and do not solicit contributions from states where we\nhave not met the solicitation requirements, we know of no prohibition\nagainst accepting unsolicited donations from donors in such states who\napproach us with offers to donate.\n\nInternational donations are gratefully accepted, but we cannot make\nany statements concerning tax treatment of donations received from\noutside the United States. U.S. laws alone swamp our small staff.\n\nPlease check the Project Gutenberg web pages for current donation\nmethods and addresses. Donations are accepted in a number of other\nways including checks, online payments and credit card donations. To\ndonate, please visit: www.gutenberg.org/donate.\n\nSection 5. General Information About Project Gutenberg electronic works\n\nProfessor Michael S. Hart was the originator of the Project\nGutenberg concept of a library of electronic works that could be\nfreely shared with anyone. For forty years, he produced and\ndistributed Project Gutenberg eBooks with only a loose network of\nvolunteer support.\n\nProject Gutenberg eBooks are often created from several printed\neditions, all of which are confirmed as not protected by copyright in\nthe U.S. unless a copyright notice is included. Thus, we do not\nnecessarily keep eBooks in compliance with any particular paper\nedition.\n\nMost people start at our website which has the main PG search\nfacility: www.gutenberg.org.\n\nThis website includes information about Project Gutenberg,\nincluding how to make donations to the Project Gutenberg Literary\nArchive Foundation, how to help produce our new eBooks, and how to\nsubscribe to our email newsletter to hear about new eBooks.","snippet":"","snippet_marked":"","source":"Project Gutenberg","citation":"https://www.gutenberg.org/ebooks/50468","license":"Public domain (per item)","year":"","url":"/record/50468","fields":{"author":"L. L. Bumgarner","language":"English","chars":"77047","source_url":"https://www.gutenberg.org/ebooks/50468"},"description":"The Project Gutenberg eBook of The Oak Ridge ALGOL Compiler for the Control Data Corporation 1604\n    \nThis eBook is for the use of anyone anywhere in the United States and\nmost other parts of the world at no cost and with almost no restrictions\nwhatsoever. You may copy it, give it away or re-use it under the terms\nof the Project Gutenberg License included with this eBook or online\nat www.gutenberg.org. If you are not located in the United States,\nyou will have to check the laws of the country where you are located\nbefore using this eBook.\n\nTitle: The Oak Ridge ALGOL Compiler for the Control Data Corporation 1604\n\nAuthor: L. L. Bumgarner\n\n\n        \nRelease date: November 17, 2015 [eBook #50468]\n                Most recently updated: October 22, 2024\n\nLanguage: English\n\nOther information and formats: www.gutenberg.org/ebooks/50468\n\nCredits: Produced by David Starner, Stephen Hutcheson, and the\n        Online Distributed Proofreading Team at http://www.pgdp.net\n        (This book was produced from images made available by the\n        HathiTrust Digital Library.)\n\n\n*** START OF THE PROJECT GUTENBERG EBOOK THE OAK RIDGE ALGOL COMPILER FOR THE CONTROL DATA CORPORATION 1604 ***\n\n                               ORNL-3460\n                    UC-32—Mathematics and Computers\n                          TID-4500 (23rd ed.)\n\n\n\n\n   THE OAK RIDGE ALGOL COMPILER FOR THE CONTROL DATA CORPORATION 1604\n                    PRELIMINARY PROGRAMMER'S MANUAL\n\n\n                            L. L. Bumgarner\n\n                     OAK RIDGE NATIONAL LABORATORY\n                              operated by\n                       UNION CARBIDE CORPORATION\n                                for the\n                     U.S. ATOMIC ENERGY COMMISSION\n\n            Printed in USA. Price: $1.25 Available from the\n                      Office of Technical Services\n                      U. S. Department of Commerce\n                          Washington 25, D. C.\n\n                              LEGAL NOTICE\n\nThis report was prepared as an account of Government sponsored work.\nNeither the United States, nor the Commission, nor any person acting on\nbehalf of the Commission:\n\n  A. Makes any warranty or representation, expressed or implied, with\n  respect to the accuracy, completeness, or usefulness of the\n  information contained in this report, or that the use of any\n  information, apparatus, method, or process disclosed in this report\n  may not infringe privately owned rights; or\n\n  B. Assumes any liabilities with respect to the use of, or for damages\n  resulting from the use of any information, apparatus, method, or\n  process disclosed in this report.\n\nAs used in the above, “person acting on behalf of the Commission”\nincludes any employee or contractor of the Commission, or employee of\nsuch contractor, to the extent that such employee or contractor of the\nCommission, or employee of such contractor prepares, disseminates, or\nprovides access to, any information pursuant to his employment or\ncontract with the Commission, or his employment with such contractor.\n\n                                                               ORNL-3460\n\n\n                       Contract No. W-7405-eng-26\n\n\n                          Mathematics Division\n\n     THE OAK RIDGE ALGOL COMPILER FOR THE CONTROL DATA CORPORATION\n                  1604—PRELIMINARY PROGRAMMER’S MANUAL\n\n                            L. L. Bumgarner\n\n\n                              DATE ISSUED\n                              JAN 30 1964\n\n\n                     OAK RIDGE NATIONAL LABORATORY\n                          Oak Ridge, Tennessee\n                              operated by\n                       UNION CARBIDE CORPORATION\n                                for the\n                     U.S. ATOMIC ENERGY COMMISSION\n\n\n\n\n                                CONTENTS\n\n\n  I. Introduction                                                      1\n  II. Language Restrictions                                            2\n  III. Modes of Operation of the Compiler                              4\n  IV. Input-Output and Intermediate Tape                               5\n      Input-Output                                                     5\n      READ                                                             5\n      PAGE                                                             7\n      Lists and the List Declaration                                   7\n      PRINT                                                            9\n      WRITE                                                            9\n      PUNCH                                                           10\n      Formats and the Format Declaration                              10\n      INPUT                                                           11\n      OUTPUT                                                          12\n      Intermediate Tape Procedures                                    13\n      BINREAD                                                         13\n      BINWRITE                                                        14\n      ENDFILE                                                         14\n      REWIND                                                          14\n      BACKUP                                                          14\n      Tape-Checking Procedures                                        14\n      EOF                                                             15\n      READERR                                                         15\n      WRITERR                                                         15\n  V. The External Declaration                                         16\n  VI. Standard Procedures                                             16\n  VII. Error Checking and Diagnostics                                 17\n  VIII. Running Programs                                              19\n      ALGOL Control System                                            20\n      EOP Card                                                        20\n      Compile and Execute: ALGO                                       21\n      PROGRAM Card                                                    22\n      Compile/Execute: ALDAP                                          22\n      ALDAP Control Statement                                         22\n      Job Deck: ALDAP Compilation/Execution                           23\n      Examples                                                        25\n\n\n                                APPENDICES\n  A. Adjuncts to Algol 60                                             30\n  B. Hardware Representation                                          32\n  C. Structure of Procedure Calling Sequence                          35\n  D. Internal Representation of Strings                               37\n  E. Program Efficiency                                               38\n  F. Controversial Features of Algol 60                               40\n  G. Fortran Subprograms in an Algol Program                          41\n\n\n\n\n      THE OAK RIDGE ALGOL COMPILER FOR THE CONTROL DATA CORPORATION\n                   1604—PRELIMINARY PROGRAMMER’S MANUAL\n\n\n                            L. L. Bumgarner\n\n\n                                ABSTRACT\n\n  This document is a preliminary programmer’s manual for use of the\n  Control Data 1604 Algol Compiler. The compiler was constructed by the\n  Programming Research Group of the Mathematics Division in cooperation\n  with Control Data Corporation. A knowledge of Algol 60 is assumed.\n  Included are descriptions of input-output facilities and details for\n  operation under the monitor system.\n\n\n\n\n                            I. Introduction\n\n\nThis document is to serve as a programmer’s manual for the Algol\ncompiler constructed as a cooperative project by Control Data\nCorporation and the Mathematics Division of Oak Ridge National\nLaboratory. The compiler is designed for the Control Data 1604 and\n1604-A computers. The document is preliminary in that the compiler is\nnot thoroughly tested and may undergo further development.\n\nThe reader is assumed to be familiar with Algol 60. The defining\ndescriptions are the two reports on Algol 60 available in the following\nreferences:\n\n  1. P. Naur et al, “Report on the Algorithmic Language Algol 60,” Comm.\n  Assoc. Comp. Mach., 3 (1960), No. 5, 299-314.\n\n  2. P. Naur et al, “Revised Report on the Algorithmic Language Algol\n  60,” Comm. Assoc. Comp. Mach., 6 (1963), No. 1, 1-17.\n\nThe second report clears up certain ambiguities that appeared in the\nfirst report. The reports are not easy reading for the novice. The\nfollowing expositions are more readable:\n\n  1. Baumann, Bauer, Feliciano and Samelson, Introduction to Algol,\n  Prentice-Hall, Inc. (to be published in late 1963).\n\n  2. Bottenbruch, H., “Structure and Use of Algol 60,” Jour. Assoc.\n  Comp. Mach., 9 (1962), No. 2, 161-221, and ORNL-3148.\n\nThe Baumann publication also contains the revised Algol 60 report.\n\nThroughout this document various examples of statements and declarations\nappear without the semicolon which is always required for separating\nthem. This is to avoid the implication that the semicolon is part of the\nstatement or the declaration. In sentences, a comma or period may appear\nwhere a semicolon or other delimiter would be indicated in the context\nof a program.\n\nWord delimiters rendered in bold-face type in the Algol report are\nherein indicated by underlining.\n\n\n\n\n                       II. Language Restrictions\n\n\nThe compiler correctly handles programs written in Algol 60 subject to\nthe following restrictions.\n\n1. The use of an integer label as an actual parameter will cause an\nincorrect program to be compiled.\n\n2. A GO TO statement with an undefined switch designator as the\ndesignational expression will cause incorrect operation of the final\nprogram.\n\n3. Type restrictions:\n\n  (a) The exponentiation expression x ↑ y will have type real unless x\n  is of type integer and y is a non-negative integer constant. This\n  differs slightly from the definition in the Algol report but will\n  generally cause no difficulty.\n\n  (b) In the construction\n\n  <if clause> <simple arithmetic expression>\n  else <arithmetic expression>\n\nthe arithmetic expressions must have the same type, or else an incorrect\nprogram will be compiled. For example, in the statement\n\n  x := if a < b then z else w\n\nz and w should both be declared real or both integer.\n\n(c) In a procedure call (procedure statement or function call) each\nactual parameter having an arithmetic value must have the same type as\nthe corresponding formal parameter in the procedure declaration. The\ntype of the formal parameter is that designated in the specification\npart if it appears there. If a formal parameter representing an\narithmetic quantity does not appear in the specification part, it is\nassumed to be specified real. Full use of specifications is desirable\nfor descriptive purposes and for optimization.\n\nCaution. Restriction (c) is more likely to cause errors than the other\nrestrictions. It is very easy to write P(1,2) when the parameters of P\nare specified real, but incorrect coding will result. The call\nP(1.0,2.0) works correctly.\n\n4. Standard procedure names (see section VI) used as parameters in\nprocedure calls will cause an incorrect program to be compiled. A call,\ntherefore, such as\n\n  P(sin)\n\nis incorrect. Note, however, that a call of the type\n\n  Q(sin(x))\n\ncauses no trouble. The case P(sin) can be programmed in another way.\nMake the declaration\n\n  real procedure sin 1 (t); real t;\n  sin 1 := sin(t).\n\nThe call\n\n  P(sin 1)\n\nis then correct.\n\n5. Arrays called by value are not handled. If an array identifier\nappears in the value part, an incorrect program will be compiled.\n\n6. “Dynamic” own arrays are not handled. This means that all own arrays\nare treated as having constant subscript bounds; this constitutes one\npossible interpretation of the Algol 60 report. An own array may be\ndeclared with variable subscript bounds, but only one allocation of\nstorage will be made, and if the bounds change, this will be ignored.\n\n7. Recursive procedures are not handled. This restriction encompasses\nall cases of a function designator appearing in the actual parameter\npart of a call of the same function, unless that function is a standard\nfunction. Thus f(f(x)) is not permitted in general, but sin(sin(x)) is\nallowed.\n\n\n\n\n                III. Modes of Operation of the Compiler\n\n\nThere are two distinct modes of operation: ALGO and ALDAP.\n\nALGO is a compile-and-execute mode in which the two phases cannot be\nseparated. The Algol program is translated into a machine language\nprogram in core memory, and execution of the program immediately and\nautomatically follows. There is no assembly program phase.\n\nALDAP makes use of the CODAP assembly program facilities. It is possible\nto compile procedures separately and reference them from an Algol\nprogram. The procedures may be written in Algol, CODAP or Fortran. This\nprovision is made possible with the aid of the external declaration\ndiscussed in section V.\n\nThe ALGO mode provides significantly faster compilation than the ALDAP\nmode for most programs. The target programs produced in the two modes\nare essentially the same. In the ALGO mode, program checkout may be done\nat the Algol language level. In the ALDAP mode, checkout may also be\ndone at the machine and assembly language levels, and modifications may\nbe made at these levels.\n\n\n\n\n                 IV. Input-Output and Intermediate Tape\n\n\nThere are seven standard procedures for input-output, five for\nintermediate tape, and three for checking tape conditions. Two\ndeclarations, format and list, are additions to the language.\n\n\n                              Input-Output\n\nThe input-output procedures are: READ, PAGE, PRINT, WRITE, PUNCH, INPUT,\nand OUTPUT.\n\n\n                                  READ\n\nThe READ procedure is used to input numbers and Boolean values. A READ\nstatement has the form\n\n  READ (V1, V2, ..., Vn)\n\nwhere n is any positive integer and each Vk is a variable. For example,\nthe statement\n\n  READ (X, Y, A[1], B[1])\n\nwill input values into the four variables listed. For inputing values\ninto an array, a statement such as the following might be used:\n\n  for I := 1 step 1 until 100 do READ (A[I]) .\n\nThe READ procedure inputs numbers and truth values. A number must be a\nlegal Algol number (although an E may be substituted for the symbol ₁₀).\nFor input into a Boolean variable, the truth values true and false are\naccepted; also, a non-negative number or a plus sign is interpreted as\nfalse and a negative number or a minus sign is interpreted as true. A\nblank is read as zero.\n\nWith the READ procedure, the type of a number on a data card does not\nhave to be the same as the type of the variable to which it is assigned.\nAny necessary type conversions are done automatically. If N is the next\nnumber in the data, the statement\n\n  READ (V)\n\nis equivalent to the statement\n\n  V := N .\n\nThe data cards are free field. The number of values per card, the length\nof numbers, and the number of spaces are arbitrary. A comma, however,\nmust follow each number, including the last one on the last data card.\n\nIn reading a value into a subscripted variable, the current value of the\nsubscript expression is not affected by that READ statement. For\nexample, in the statement\n\n  READ (I, A[I])\n\nthe old value of I is used in A[I].\n\nThe READ procedure will input data from the standard input medium only.\n\n\n                                  PAGE\n\nThe PAGE procedure is used to cause a page ejection on the standard\noutput medium. PAGE has no parameters. It is called by simply writing\n\n  PAGE .\n\n\n                     Lists and the List Declaration\n\nThe input and output procedures described in the rest of this section,\nas well as the binary read and write procedures, make use of the concept\nof a list. A list[1] is a sequence of expressions. An example is\n\n  U + V, C[0], if B then X else Y .\n\nIt may be inconvenient in some cases to write down all of the\nexpressions explicitly. The loop expression[1] may be used as a\nshorthand device in a list. It is an Algol-like construction of which\nthe following is an example:\n\n  for I := 1 step 1 until 1000 do A[I] .\n\nThis is equivalent to the list\n\n  A[1], A[2], ..., A[1000] .\n\nThe entity following do in a loop expression may itself be a list, but\nthis list must be enclosed in parentheses if it contains more than one\nmember.\n\nThe loop expression\n\n  for I := 1 step 1 until 1000 do (A[I], B[I])\n\nis equivalent to the list\n\n  A[1], B[1], A[2], B[2], ..., A[1000], B[1000] .\n\nThe loop expression\n\n  for I := 1 step 1 until 10 do (A[I], for J := 1\n  step 1 until 20 do B[I,J])\n\nis equivalent to the list\n\n  A[1], B[1,1], B[1,2], ..., B[1,20],\n  A[2], B[2,1], B[2,2], ..., B[2,20],\n  ....................................\n  A[10], B[10,1], B[10,2], ..., B[10,20] .\n\nA list may be given a name through a list declaration. A list\ndeclaration has the form\n\n  list identifier := list .\n\nExamples are:\n\n  list L := X, A + B\n\n  list M := for I := 1 step 1 until N do A[I] .\n\nA list identifier may itself appear in a list. One of the above examples\nmight be written with the aid of the following declaration:\n\n  list L := for J := 1 step 1 until 20 do B[I,J] .\n\nThe loop expression is then\n\n  for I:= 1 step 1 until 10 do (A[I], L) .\n\nA list declaration obeys the same rules of syntax and scope as do other\ndeclarations.\n\nA list identifier may be used as an actual parameter of a procedure\ncall, with the requirement that the corresponding formal parameter be\nspecified list. However, an actual list may appear as a parameter only\nin calls of the standard procedures, as described.\n\n\n                                 PRINT\n\nThe PRINT procedure is used to output numbers in a simple, rigid manner.\nA PRINT statement has the form\n\n  PRINT (list),\n\nwhere list is described above. An example of a PRINT statement is\n\n  PRINT (A, if N = 0 then S else T).\n\nA PRINT statement always puts out at least one line printer image. A\nline may contain up to 6 numbers, each of which is in scientific\nnotation with 10 decimal places. Each number is right-justified in a\nfield of 20 columns. (The format is 6E20.10.) The above PRINT statement\nwill output two numbers in the first forty spaces, and the rest of the\nline will be blank. A PRINT statement such as\n\n  PRINT (for I := 1 step 1 until 10 do A[I])\n\nwill output one line of 6 numbers followed by one line of 4 numbers.\nSingle spacing between lines is automatic.\n\nThe PRINT procedure always outputs on the standard output medium.\n\n\n                                 WRITE\n\nThe WRITE procedure is used to output strings. Examples of WRITE\nstatements are:\n\n  WRITE ('TABLE')\n\n  WRITE (if D < 0 then 'TRUE' else 'FALSE') .\n\nEach parameter must be a string expression (see Appendix A for\ndefinition of string expression). There may be any number of parameters,\nbut each string will appear on a separate line. If a string is too long\nto go on one line, it will be continued on the next line. A string\nshould not contain another string. Lines are single spaced. Each WRITE\nstatement causes at least one line printer image to be put out.\n\nThe WRITE procedure always outputs on the standard output medium.\n\n\n                                 PUNCH\n\nThe PUNCH procedure is used to output numbers on punched cards in a form\nwhich can be input by the READ procedure. Each number punched will be\nfollowed by a comma. Each card punched may contain up to four numbers.\nEach number will be of type real, but since the READ procedure makes any\nnecessary type conversions this is unimportant. A PUNCH statement has\nthe same form as a PRINT statement. Each PUNCH statement causes at least\none card image to be put out.\n\nThe PUNCH procedure always outputs on the standard punch medium.\n\n\n                   Formats and the Format Declaration\n\nThe two input and output procedures remaining to be described make use\nof formats. The formats are exactly those used in Fortran, and readers\nunfamiliar with Fortran will find it necessary to refer to the Control\nData Fortran-62 Reference Manual for details on the use of formats.\n\nA format is treated as a string. Formats will be written, for example,\nas follows:\n\n  '(6E20.10)'\n\n  '(1H0, 9X, 5HTABLE, I3)' .\n\nNote that the parentheses are part of the format, and both parentheses\nand string quotes are required.\n\nAs will be indicated below, a format string may appear explicitly in an\nINPUT or OUTPUT statement. If the same format string is used more than\nonce, however, it may be convenient to give it a name through a format\ndeclaration. A format declaration has the form\n\n  format Identifier := '(Fortran format)' .\n\nExamples are:\n\n  format F := '(6E20.10)'\n\n  format G := '(1H0, 9X, 5HTABLE, I3)' .\n\nA format declaration obeys the same rules of syntax and scope as do\nother declarations.\n\nFormat identifiers may be used as parameters, and format is a specifier.\n\n\n                                 INPUT\n\nThe INPUT procedure is used to input numbers and Hollerith information\nin accordance with Fortran-type formats. An INPUT statement has one of\nthe forms\n\n  INPUT (M,F,list)\n\n  INPUT (M,F)\n\nwhere:\n\n(1) M is the logical unit designation. M may be any arithmetic\nexpression. If it is not integral-valued, the action\n\n  M := entier (M + 0.5)\n\nwill take place. The standard input unit is 50.\n\n(2) F is a format expression. It may be an actual format string, a\nformat identifier, a conditional format expression, or any variable\nwhich contains the starting address of a format string. Caution. In the\ncase of a conditional format expression, format strings and format\nidentifiers should not be mixed. For example, (a) and (b) below are\npermitted, but (c) will cause an incorrect program to be compiled:\n\n  (a) if B then '(E20.7)' else '(E20.6)'\n  (b) if B then F1 else F2\n  (c) if B then F1 else '(E20.6)' .\n\n(3) list is as defined previously. Of course, for INPUT all expressions\nmust be variables.\n\nThe following are examples of an INPUT statement:\n\n  INPUT (50, '(4E20.8)', N, for I := 1 step 1 until N do A[I]).\n\n  INPUT (if A < B then M else N, F, X, Y, Z) .\n\nEach INPUT statement causes at least one card image to be read.\n\nNote that the INPUT procedure does not make type checks between the data\nand the program variables. A floating point number, for example, is\nstored as such regardless of the type of the variable to which it is\nassigned.\n\nCaution. It is strongly recommended that not both READ and INPUT be used\nin the same program. Each buffers ahead one card image. Furthermore,\neach INPUT statement causes at least one card image to be read while a\nREAD statement may not cause a new card image to be read. Mixing the two\nstatements will require quite careful use of blank cards in the data to\nallow for the buffering.\n\n\n                                 OUTPUT\n\nThe OUTPUT procedure is used to output numbers and Hollerith information\nin accordance with Fortran-type formats. An OUTPUT statement has one of\nthe forms\n\n  OUTPUT (M,F)\n  OUTPUT (M,F,list)\n\nwhere M, F, and list are as indicated above. The following are examples\nof OUTPUT statements:\n\n  OUTPUT (51, '(5HTABLE)')\n\n  OUTPUT (51, '(1H0,9X,10E10.2)', for I := 1 step 1 until 100 do A[I]) .\n\nEach OUTPUT statement causes at least one line printer image to be put\nout. The standard output unit is 51, and the standard punch unit is 52.\n\n\n                      Intermediate Tape Procedures\n\nThere are five standard procedures for making use of magnetic tape for\nauxiliary storage:\n\nBINREAD, BINWRITE, ENDFILE, REWIND and BACKUP.\n\n\n                                BINREAD\n\nA BINREAD statement has the form\n\n  BINREAD (M, list)\n\nwhere M and list are the same as for INPUT. Each BINREAD statement\ncauses the designated unit to move forward one logical record, reading\nin binary format into the variables of the list. If fewer variables\nappear in the list than are on the record, only those values are read\nand the tape moves on to the end of the record. If more variables appear\nin the list than are on the record, this is treated as an error and the\nprogram is terminated.\n\nThe following is an example of a BINREAD statement:\n\n  BINREAD (6, for I := 1 step 1 until 1000 do A[I]) .\n\n\n                                BINWRITE\n\nA BINWRITE statement has the form\n\n  BINWRITE (M, list)\n\nwhere M and list are the same as for OUTPUT. Each BINWRITE statement\ncauses the values of the list expressions to be written in one logical\nrecord in binary format on the designated unit.\n\n\n                                ENDFILE\n\nAn ENDFILE statement has the form\n\n  ENDFILE (M)\n\nwhere M is a unit designation as before. The statement causes an\nend-of-file record to be written on the designated unit.\n\n\n                                 REWIND\n\nA REWIND statement has the form\n\n  REWIND (M)\n\nwhere M is a unit designation as before. The statement causes the\ndesignated unit to be rewound to the load point.\n\n\n                                 BACKUP\n\nA BACKUP statement has the form\n\n  BACKUP (M)\n\nwhere M is a unit designation as before. The statement causes the\ndesignated unit to be backspaced one logical record of binary\ninformation or one physical record of BCD information.\n\n\n                        Tape-Checking Procedures\n\nThe checking procedures are: EOF, READERR, and WRITERR. These are\nBoolean procedures.\n\n\n                                  EOF\n\nAn EOF call has the form\n\n  EOF (M)\n\nwhere M is a logical unit designation as before. It yields the value\ntrue if the previous read operation encountered an end-of-file or the\nprevious write operation encountered an end-of-tape; otherwise it yields\nthe value false.\n\nAn example of the use of an EOF call is:\n\n  if EOF(6) then goto ALARM .\n\n\n                                READERR\n\nA READERR call has the form\n\n  READERR (M)\n\nwhere M is a logical unit designation as before. It yields the value\ntrue if the previous read operation produced a parity error; otherwise\nit yields the value false.\n\nREADERR should not be used for testing the operation of a READ\nstatement. The READ procedure has its own facilities for checking,\nmaking multiple attempts in case of errors, and terminating the program\nif necessary.\n\n\n                                WRITERR\n\nA WRITERR call has the form\n\n  WRITERR (M)\n\nwhere M is a logical unit designation as before. It yields the value\ntrue if the previous write operation produced a parity error; otherwise\nit yields the value false.\n\n\n\n\n                      V. The External Declaration\n\n\nAn external declaration is required for each nonstandard library\nprocedure or procedure compiled separately from the calling program,\nwhether in Algol, Fortran or CODAP. Standard Algol procedures are\ndescribed in Section VI. Note that a CODAP subroutine must take account\nof the special structure of the Algol calling sequence as described in\nAppendix C or be treated as a Fortran subprogram. The use of Fortran\nsubprograms is described in Appendix G.\n\nThe external declaration has one of the following forms:\n\n  external I1, ..., In\n  real external I1, ..., In\n  integer external I1, ..., In\n  Boolean external I1, ..., In\n\nwhere each Ik is an identifier and n is any positive integer. A type\ndeclarator preceding the declarator external signifies a function\nprocedure having that type. Note that no information about parameters\nappears in an external declaration. See Appendix A for syntactical\ndefinition.\n\nIn the ALGO mode, LIB cards must be included in the job deck for\nnonstandard library routines, in addition to the external declarations.\nDetails are found in Section VIII.\n\n\n\n\n                        VI. Standard Procedures\n\n\nCertain procedures are used without being declared. These include the\nstandard functions listed in the Algol 60 report and the input-output\nand intermediate tape procedures. The complete list is as follows:\n\n  ABS\n  SIGN\n  SQRT\n  SIN\n  COS\n  ARCTAN\n  LN\n  EXP\n  ENTIER\n  EOF\n  READERR\n  WRITERR\n  FORTRANF\n  FTNF\n  READ\n  PAGE\n  PRINT\n  WRITE\n  PUNCH\n  INPUT\n  OUTPUT\n  BINREAD\n  BINWRITE\n  ENDFILE\n  REWIND\n  BACKUP\n  FORTRAN\n  FTN\n\nThese procedures are global to the program. They behave as though\ndeclared in a fictitious block surrounding the entire program.\n\n\n\n\n                  VII. Error Checking and Diagnostics\n\n\nIn a complete compilation the compiler makes two passes on the Algol\nsource program. If errors which the compiler cannot correct are detected\nin the first pass, then the second, or translation, pass will not be\nmade. The following types of errors are detected:\n\n\n  1. syntactical error\n  2. undeclared identifier\n  3. identifier declared twice in the same block head\n  4. misspelled delimiter (corrected in many cases)\n  5. missing escape symbol (corrected unless both are missing for the\n          same delimiter, in which case the delimiter is treated as an\n          identifier).\n\n\nThe program listing and any diagnostics always appear on the standard\noutput medium. In the case of a syntactical error, a message will appear\nin the program listing one or several lines below the error. The\nlocation of the error in the program will be further pinpointed in the\nline of symbols immediately below the error message. This line will be a\nshort portion of the program with the last symbol in the line being the\none which indicates the error. For example, a declaration might be out\nof place as follows:\n\n                    .\n                    .\n                    .\n          x := a + b; 'INTEGER' K;\n\n  **** LAST CHARACTER INDICATES SYNTACTICAL ERROR.\n\n  x := a + b; INTEGER\n                  .\n                  .\n                  .\n\nIn some cases the line below the message may differ slightly from the\ncorresponding string of symbols above; for example, an identifier might\nbe rendered by Ident. It is possible for a single syntactical error to\ncause more than one diagnostic.\n\nA few syntactical errors are corrected by the compiler, and a message is\nput out to this effect. An example is a semicolon immediately preceding\nelse.\n\nAccording to the comment conventions of Algol, any string of symbols\nfollowing end and not containing end, else or a semicolon is treated as\ncomment. As a result, the omission of one of these symbols following end\ndoes not always cause an error in compilation but will cause a portion\nof the program to be skipped over by the compiler. Thus for example, in\n\n  ... x := a + b end for i := 1 step 1 ...\n\nthe FOR statement will be skipped at least in part. The compiler will\nput out a caution message in this and some other cases, but it will not\nchange the program.\n\nIf an identifier is not declared (or possibly declared in the wrong\nplace), a message is put out below the program listing together with the\nundeclared identifier.\n\nThe compiler does not check the type of identifiers. Therefore, such\nerrors as a Boolean variable in an arithmetic expression, or the\nbrackets of a subscripted variable replaced by parentheses, are not\ndetected, and an incorrect program may be compiled.\n\n\n\n\n                         VIII. Running Programs\n\n\nThe Algol program is punched on cards in the hardware representation\ndescribed in Appendix B. The format is essentially free field: spaces\nhave no significance except within escape symbols and string quotes.\nOnly the first 72 columns, however, are interpreted by the compiler. The\nremaining columns may be used for identification purposes. Care must be\ntaken when a string is continued onto the next card, as the continuation\nwill begin in column 1. The program listing will have the same format as\nthe cards.\n\nIn the following discussion the symbol Ø signifies the letter O where\nnecessary for emphasis, and the symbol Δ signifies a 7-9 punch in card\ncolumn 1.\n\n\n                          ALGOL Control System\n\nThe compiler operates under the ALGOL Control System. This system is a\nsubordinate control routine of the Master Control System of the CO-OP\nMonitor Programming System. ALGOL is quite similar to the subordinate\ncontrol routine COOP.\n\nALGOL is called with an MCS (Master Control System) card having ALGOL\npunched beginning in column 2. Other details of this card are available\nin descriptions of the CO-OP Monitor. It should be noted in selecting a\nstandard recovery procedure that the concept of COMMON is not used in\nAlgol.\n\nFollowing the MCS card will be a control card giving instructions to the\ncontrol routine ALGOL. It will name one of the following routines: ALGO,\nALDAP, EXECUTE, BINARY, FORTRAN, REWIND or DEFINE. These will be\ndiscussed below.\n\n\n                                EOP Card\n\nThe EOP (end-of-program) card has the characters 'EØP' punched in\ncolumns 10-14.\n\nIn the ALGO mode, one EOP card must be used to terminate the program.\n\nIn the ALDAP mode, one EOP card must be used to terminate each Algol\nprogram or Algol procedure being compiled separately.\n\n\n                       Compile and Execute: ALGO\n\nThe ALGO mode of running an Algol program is the simplest and the\nfastest. It will be the more suitable for a large number of programs.\nUnless the programmer has special reasons for using the ALDAP mode, the\nALGO mode is recommended.\n\nThe Algol program must be self-contained except for standard procedures\nand library procedures on the library-systems tape. The job deck must\nhave the following cards in the specified order:\n\n\n  1. MCS control card.\n\n      The subordinate control routine name must be ALGØL.\n  2. ALGOL control card.\n\n      This will appear as\n\n      ΔALGØ. or ΔALGØ,t. where t is an integer specifying a time limit\n          in minutes for compilation and execution.\n\n      (The period is required on every control card.)\n  3. LIB cards.\n\n      If necessary. One LIB card is required for each non-standard\n          library procedure called in the program, namely those declared\n          external. The format of a LIB card is as follows: the\n          characters LIB punched in columns 10-12 and the name of a\n          library entry point beginning in column 20. There may be no\n          more than 20 LIB cards.\n  4. PROGRAM card.\n\n      If desired. This may be used to identify the program. Its format\n          is described in the next paragraph.\n  5. Algol program deck.\n  6. EOP card.\n  7. Data.\n\n      If required.\n\n\n                              PROGRAM Card\n\nThe PROGRAM card is optional. It is useful for identification purposes,\nand in the ALDAP mode it serves to name the program entry point.\n\nThe format of the card is free field. The characters PRØGRAM must appear\nfollowed by the program name, which must be alphanumeric.\n\n\n                         Compile/Execute: ALDAP\n\nThe ALDAP mode is used to compile an Algol program or procedure to a\nrelocatable binary or a CODAP format. Execution is optional. For\ncompilation only, the program deck may consist of any mixture of Algol\nprograms and procedures, any number of which may be in CODAP. If\nexecution is desired, part or all of the program deck may have been\npreviously compiled, so that the deck may have Algol, CODAP and\nrelocatable binary cards.\n\n\n                        ALDAP Control Statement\n\nThe format of the ALDAP statement is:\n\n  ΔALDAP,L,B,n.\n\nwhere\n\n\n    L is a program listing key,\n\n    B is a punched card output key,\n\n    n is a logical unit number.\n\n\nA period may terminate the statement at any point, with remaining fields\ntreated as zero.\n\nIf the program listing key (L) is a 1, an assembled listing of the CODAP\nobject code will be produced on the standard output medium. If the key\nis zero or blank, no such listing will be produced. A listing of the\nAlgol program and any diagnostics will always be produced on the\nstandard output medium.\n\nIf the punched card output key (B) is a 1, a relocatable binary deck\nwill be produced on the standard punch medium. If the key is a 2, a\nCODAP symbolic deck will be produced on the standard punch medium. If\nthe key is a 3, both a symbolic deck and a relocatable binary deck will\nbe produced on the standard punch medium, with the symbolic deck\nappearing first. If the key is zero or blank, no deck will be produced.\n\nThe logical unit number (n) specifies the unit which is to be the\nload-and-go tape if it is one of the integers 1-49 or 56. If n is some\nother integer or blank, no load-and-go tape will be written. The\nload-and-go tape is required when execution of the program is to follow.\n\nExamples:\n\n\n  (a) ΔALDAP, 1, 1, 56.\n\n\nThis statement will cause the Algol/CODAP deck to be compiled, an\nassembled listing to be produced on the standard output medium, a\nrelocatable binary deck to be produced on the standard punch medium, and\na load-and-go tape written on logical unit 56.\n\n\n  (b) ΔALDAP, 1.\n\n\nThis statement will cause the Algol/CODAP deck to be compiled, and an\nassembled listing to be produced on the standard output medium.\n\n\n                 Job Deck: ALDAP Compilation/Execution\n\nFor compilation only of an Algol/CODAP program deck, the job deck should\ncontain the following cards in the specified order:\n\n\n  1. MCS control card.\n\n      With ALGØL as the subordinate control routine name.\n  2. ALGOL control card.\n\n      With the appropriate ALDAP control statement.\n  3. PROGRAM card.\n\n      If desired.\n  4. Program deck.\n\n      Any mixture of Algol and CODAP programs and procedures, with all\n          their subroutines except the standard procedures and those on\n          the library-systems tape. Each Algol program or procedure must\n          be terminated by an EOP card.\n  5. FINIS card.\n\n      This card contains the characters FINIS punched in columns 10-14.\n          It signals the end of all compilations.\n\n\nFor compilation and execution of an Algol/CODAP program deck, a\nload-and-go tape must be requested in the ALDAP control statement. If no\nrelocatable binary cards follow the last subprogram to be compiled, then\nthe program deck must be terminated by an EOP card which is in addition\nto the EOP card or END card (the latter for a CODAP subprogram) which\nterminates the last program or procedure. The FINIS card then follows\nthis additional EOP card. An EOP card always causes a TRA card image to\nbe written on the load-and-go tape.\n\nThe control statements EXECUTE, BINARY, FORTRAN, REWIND and DEFINE may\nbe used as described in the “CO-OP Monitor Programmer’s Guide”. BINARY\nis useful for loading a relocatable binary deck onto the load-and-go\ntape prior to compilation of an Algol calling program, where the\nsubprogram in relocatable form might have the same name as a library\nroutine. If the Algol program preceded the relocatable deck, the library\nroutine would be fetched by the loader and an error indication given.\n\nThe CO-OP control statements LOAD and EXECUTER are not used by ALGOL.\n\n\n                                Examples\n\nEach of the following examples describes a job deck which illustrates a\ndifferent way of compiling and executing the same Algol program. The\nprogram calls a library procedure with entry point named BESSEL, and the\nprogram contains at least one other procedure. On the MCS card only the\nfirst field is indicated, as the others may vary from one installation\nto another.\n\n\n\n\n                               Example 1\n\n\nThis job uses the ALGØ mode.\n\n  ΔALGØL, ... .\n\n  ΔALGØ.\n\n          LIB BESSEL\n\n        PRØGRAM SAMPLE\n\n        Algol Program (with external declaration of BESSEL)\n\n          'EØP'\n\n        Data\n\n\n\n\n                               Example 2\n\n\nThis job uses the ALDAP mode, compiling the entire program at once. The\nALDAP control statement calls for an assembled listing, a binary deck,\nand a load-and-go tape on logical unit 56. The execute card gives a two\nminute time limit on the execution.\n\n  ΔALGØL, ... .\n\n  ΔALDAP,1,1,56.\n\n        PRØGRAM SAMPLE\n\n        Algol Program (with external declaration of BESSEL)\n\n          'EØP'\n\n          'EØP'\n\n          FINIS\n\n  ΔEXECUTE,2.\n\n        Data\n\n\n\n\n                               Example 3\n\n\nThis job consists simply of the execution of the relocatable program\ndeck obtained in example 2.\n\n  ΔALGØL, ... .\n\n  ΔEXECUTE,2.\n\n        Relocatable Deck\n\n        Data\n\n\n\n\n                               Example 4\n\n\nThis example is similar to example 2. Here the main program and one of\nits procedures are to be compiled separately.\n\n  ΔALGØL, ... .\n\n  ΔALDAP,1,1,56.\n\n        PRØGRAM SAMPLE\n\n        Algol Program (with external declaration of both BESSEL and the\n              procedure being compiled separately)\n\n          'EØP'\n\n        Algol Procedure\n\n          'EØP'\n\n          'EØP'\n\n          FINIS\n\n  ΔEXECUTE,2.\n\n        Data\n\n\n\n\n                               Example 5\n\n\nIn this example the procedure which was compiled separately in example 4\nis being compiled by itself, i.e., the calling program is not in the\ndeck at all. Of course there is no execution in this case. Note that no\nload-and-go tape is requested and only one EOP card is used. There\ncannot be a PROGRAM card.\n\n  ΔALGØL, ... .\n\n  ΔALDAP,1,1.\n\n        Algol Procedure\n\n          'EØP'\n\n          FINIS\n\n\n\n\n                               Example 6\n\n\nHere the procedure compiled by itself in example 5 appears in the\nprogram deck in relocatable binary form, while the calling program is in\nthe Algol language.\n\n  ΔALGØL, ... .\n\n  ΔALDAP,1,1,56.\n\n        PRØGRAM SAMPLE\n\n        Algol Program (with external declaration of both BESSEL and the\n              procedure in relocatable form)\n\n          'EØP'\n\n          FINIS\n\n  ΔEXECUTE,2.\n\n        Relocatable Deck\n\n        Data\n\nThe relocatable deck here must be terminated by two TRA cards. One of\nthese is generated by the compiler when it processes the EOP card which\nmust terminate the procedure for compilation, as in example 5. The\nsecond TRA card can be obtained by using a second EOP card, as in\nexample 2. Alternatively, the second TRA card can be added to the\nrelocatable deck before execution. Note that this second TRA card must\nnot be used when the relocatable deck is loaded by a BINARY control\nstatement. This is illustrated in the next example.\n\n\n\n\n                               Example 7\n\n\nIn this case the previously compiled procedure has the same name as a\nroutine on the library-systems tape.\n\n  ΔALGØL, ... .\n\n  ΔBINARY,56.\n\n        Relocatable Deck (terminated by one TRA card)\n\n  ΔALDAP,1,1,56.\n\n        PRØGRAM SAMPLE\n\n        Algol Program (with external declaration of both BESSEL and the\n              procedure in relocatable form)\n\n          'EØP'\n\n          'EØP'\n\n        FINIS\n\n  ΔEXECUTE, 2.\n\n        Data\n\nThe logical unit number on the BINARY control statement must agree with\nthat which specifies the load-and-go tape in the ALDAP control\nstatement.\n\n\n\n\n                               APPENDIX A\n                          Adjuncts to Algol 60\n\n\n                             List Entities\n\nThe delimiter list is a declarator and a specifier.\n\n  <list identifier> ::= <identifier>\n\n  <loop expression> ::= <for clause> <arithmetic expression>\n        | <for clause> <loop expression>\n        | <for clause> (<list>)\n\n  <list element> ::= <arithmetic expression>\n        | <loop expression>\n        | <list identifier>\n\n  <list> ::= <list element>\n        | <list>, <list element>\n\n  <list declaration> ::= list <list identifier> := <list>\n\n\n                            Format Entities\n\nThe delimiter format is a declarator and a specifier.\n\n  <format identifier> ::= <identifier>\n\n  <simple format expression> ::='(<Fortran format>[2])'\n        | <format identifier>\n\n  <format expression> ::= <simple format expression>\n        | <if clause> <simple format expression>\n          else <format expression>\n\n  <format declaration> ::= format <format identifier> := <format\n              expression>\n\n\n                           String Expression\n\n  <string expression> ::= <string>\n        | <if clause> <string>\n          else <string expression>\n\n\n                          External Declaration\n\nThe delimiter external is a declarator.\n\n  <external identifier> ::= <identifier>\n\n  <external list> ::= <external identifier>\n        | <external identifier>, <external list>\n\n  <external declaration> ::= external <external list>\n        | <type> external <external list>\n\n\n\n\n                               APPENDIX B\n                        Hardware Representation\n\n\nOne keypunch character is reserved as an “escape symbol”, which we shall\nhere suppose is the apostrophe. This symbol is used to delineate word\ndelimiters and truth values, which are written in boldface type in Algol\nreference language and publication language and indicated by underlining\nin this manual. The hardware representation of a word delimiter such as\nbegin is therefore 'BEGIN'. No distinction is made between upper and\nlower case letters in the hardware language.\n\nThe transliteration rules for the non-word delimiters are comprised in\nthe following table. This assumes a 48 character hardware set and is\nconsistent with the usage in the ALCOR group. For some basic symbols\nalternatives are tolerated, as indicated.\n\n    Reference        Hardware           Tolerated Hardware\n        <              'LS'                   'LESS'\n        ≤              'LQ'         'LSEQ', 'NOTGREATER', 'NOT\n                                             GREATER'\n        =              'EQ'                  'EQUAL'\n        ≥              'GQ'       'GREQ', 'NOTLESS', 'NOT LESS'\n        >              'GR'                 'GREATER'\n        ≠              'NQ'          'NTEQ', 'NOTEQUAL', 'NOT\n                                              EQUAL'\n        ¬              'NOT'\n        ∧              'AND'\n        ∨              'OR'\n        ⊃             'IMP'             'IMPLIES', 'IMPL'\n        ≡             'EQV'                  'EQUIV'\n        ₁₀              '                    'E','T'\n        ×                *\n        ↑               **                   'POWER'\n        ÷               //                    'DIV'\n        :               ..\n        ;               $                       .,\n        :=              =                    .=, ..=\n        [               (/\n        ]               /)\n        ‘               \"                      '('\n        ’               \"                      ')'\n\nIn the case of the string quotes, the tolerated symbols are required for\nthe inner strings of a nest of strings.\n\nActually, the compiler can tolerate many other spellings of word\ndelimiters because of its facility for correcting misspellings.\n\nThe delimiter go to is accepted with or without the space between the\ntwo words, but it is treated as a single delimiter: 'GOTO' or 'GO TO'.\n\nThe compiler can also accept a 64 character hardware representation: the\nfull set available on the line printer. In preparing programs,\noverpunching is used on the 48 character keypunch in this case. The\ntable below indicates the keypunching rules in use at Oak Ridge National\nLaboratory.\n\n    Reference        Hardware\n        <            1-8 punch\n        ≤            1-5 punch\n        ≥            1-9 punch\n        >            2-7 punch\n        ≠            2-6 punch\n        ∧            3-7 punch\n        ∨            2-4 punch\n        ₁₀           1-6 punch\n        ↑            2-5 punch\n        ÷            3-5 punch\n        :            2-8 punch\n        ;            2-9 punch\n        [            3-6 punch\n        ]            3-4 punch\n\nThe other basic symbols are either in the 48 character set or are\nreplaced by word delimiters as above. The symbol := is treated as two\nsymbols in the 64 character set, and = is punched as such.\n\n\n\n\n                               APPENDIX C\n                Structure of Procedure Calling Sequence\n\n\nThe following information is necessary for the user writing a non-Algol\nprocedure to be called from an Algol program. The calling sequence\ndiffers from that found in many other languages.\n\nThe first word of the non-Algol procedure must have a simple jump\ninstruction in its upper half, and the exit line is provided by a jump\nto this first word. The entry automatically causes the proper return\naddress to be placed in the address portion of the first half-word.\n\nUpon entry to the procedure, index register six contains an address\nwhich is used to reference each parameter. To establish linkage with the\nfirst parameter, the instruction\n\n  LDA 6 0\n\nis performed. This brings into the accumulator a word of one of the\nfollowing types:\n\n  1. SLJ 0 ENA V\n  2. SLJ 0 RTJ L\n\nIn case (1), V is the address of the parameter. In case (2), L is the\nstarting address of a piece of coding for computing the address of the\nparameter and leaving it in the accumulator (if the parameter is an\nexpression, the address in the accumulator will be that of a temporary\ncontaining its value). Case (1) always holds if the parameter is a\nsimple variable, string, array identifier, switch identifier, or\nprocedure identifier. In case (2) the same temporary will be used for\nall the expressions.\n\nBoth cases can be provided for by setting aside two locations for each\nparameter in the procedure body and placing the instruction\n\n  SLJ *-1\n\nin the upper half of each second location. Then after\n\n  LDA 6 0\n\nmentioned above,\n\n  STA RES1,\n\nwhere RES1 is the first reserved location for the first parameter, makes\nthe two locations into a closed subroutine. After this, the instruction\n\n  RTJ RES1\n\ncauses the address of the first parameter to be placed in the\naccumulator anytime it is performed. This accommodates expressions\ncalled by name.\n\nIn general, the K^th parameter is referenced as above, but beginning\nwith\n\n  LDA 6 (K - 1).\n\nThis description does not apply to the standard procedures, each of\nwhich has its own special calling sequence.\n\n\n\n\n                               APPENDIX D\n                   Internal Representation of Strings\n\n\nThe address representing a string is that of the first word of string\ncharacters. Each left string quote is represented internally by the word\n\n  00 ... 03454 ,\n\nand each right string quote by\n\n  00 ... 05474 .\n\nThe characters of the string which are not string quotes are packed in\nBCD eight characters per word. These words are in the natural order, the\nfirst immediately following the left string quote and the last\nimmediately followed by the right string quote. If the last word before\na right quote is not full, the rest of that word is filled out with\nzeros (not BCD blanks).\n\n\n\n\n                               APPENDIX E\n                           Program Efficiency\n\n\nThe following information may be of interest to programmers desiring an\nefficient program:\n\n  1. The FOR statement is defined with more generality than is useful in\n  most programs. In particular, the arithmetic expressions in the FOR\n  clause are allowed to change in value during execution of the FOR\n  statement. The compiler does not attempt to determine which FOR\n  statements make use of this flexibility and treats all of them in the\n  most general way. Therefore, in a statement such as\n\n  for I := 1 step M + N until abs(A - B) do ... ,\n\n  the expression M + N is evaluated twice for each iteration, and the\n  expression abs(A - B) is evaluated once for each iteration. If M, N, A\n  , and B do not change in the loop, this is unnecessary. Such\n  inefficiency can be avoided by programming in a slightly different\n  way. The above example can be written as follows:\n\n  T1 := M + N; T2 := abs(A - B) ;\n  for I := 1 step T1 until T2 do ... .\n\n  2. The concept of call by value is a device applied to procedures to\n  eliminate unneeded flexibility in procedure calls. If a parameter\n  having a value is referenced more than once in the procedure body and\n  the flexibility of call by name is not needed, then the program is\n  more efficient if the parameter is included in the value part of the\n  procedure heading. If such a parameter is referenced only once, it is\n  more efficient if it is not included in the value part.\n\n  3. Array identifiers which are parameters should be specified.\n\n\n\n\n                               APPENDIX F\n                   Controversial Features of Algol 60\n\n\nA few features of the language have been subject to more than one\ninterpretation. Fortunately, the vast majority of programs will not\ninvolve these ambiguities, but for the few that do it will be necessary\nto know what decisions the compiler makes. This appendix indicates these\ndecisions for the more controversial areas.\n\n  1. Side effects in function designators. The evaluation of primaries\n  in expressions is not strictly left to right allowing for precedence\n  rules. In particular, the value of a variable in an expression is\n  never stored in a temporary simply to preserve its value from change\n  by the evaluation of a function designator in the expression.\n  Otherwise, the evaluation does proceed from left to right and\n  according to precedence rules, including the referencing of formal\n  parameters and the calculation of the address of subscripted\n  variables. All function designators are evaluated in Boolean\n  expressions.\n\n  2. Own variables and arrays in procedures. The own quantities local to\n  the body of a procedure which is called from more than one point in a\n  program record the history of the procedure as opposed to a history of\n  each point of reference. In other words, only one copy of the own\n  quantities is preserved.\n\n\n\n\n                               APPENDIX G\n                Fortran Subprograms in an Algol Program\n\n\nThe standard procedures FORTRAN, FORTRANF, FTN, and FTNF are used to\ncall compiled Fortran subroutines and functions from within an Algol\nprogram. Each procedure has one parameter which is a call of the desired\nFortran subprogram. The Fortran subprogram must be declared external as\ndescribed in Section V.\n\nThe use of these procedures simply causes a Fortran calling sequence to\nbe generated by the compiler. Of course the subprogram could be written\nin CODAP as well as Fortran, provided it is designed to link through a\nFortran-type calling sequence.\n\nThe procedures are used as follows:\n\n\n  FORTRAN—generates a Fortran 62 calling sequence for a subroutine\n  FORTRANF—generates a Fortran 62 calling sequence for a function\n  FTN—generates a Fortran 63 calling sequence for a subroutine\n  FTNF—generates a Fortran 63 calling sequence for a function\n\n\nEach of these procedures is standard, i.e., available without\ndeclaration. FORTRANF and FTNF are used in expressions.\n\nExamples:\n\n  x := FTNF (ALPHA(T,A[0,0]))\n\n  FORTRAN (SUB(I + J)) .\n\nThe following restrictions must be observed: labels, procedures with no\nparameters, standard procedure names, and array names cannot be used as\narguments of a call of a Fortran subprogram. However, in the case of an\narray, the subscripted variable which is the first element of the array\nwill satisfy a Fortran subroutine which has an array name as a formal\nparameter. The name of the Fortran subprogram cannot be a formal\nparameter. Literals must be enclosed in string quotes.\n\n\n\n\n                               Footnotes\n\n\n[1]See Appendix A for syntactical definition.\n\n[2]For definition of Fortran format, see Control Data Fortran-62\n   Reference Manual.\n\n\n                             Acknowledgment\n\nThe author was greatly assisted in the preparation of this document by\nseveral persons who have contributed labors or advice to the\nconstruction of the compiler. These include N. B. Alexander and A. A.\nGrau, also K. A. Wolf of Control Data Corporation, and especially R. G.\nStueland of Control Data Corporation.\n\n                               ORNL-3460\n                    UC-32—Mathematics and Computers\n                          TID-4500 (23rd ed.)\n\n\n\n\n                         INTERNAL DISTRIBUTION\n\n\n  1. Biology Library\n  2-4. Central Research Library\n  5. Reactor Division Library\n  6-7. ORNL--Y-12 Technical Library Document Reference Section\n  8-27. Laboratory Records Department\n  28. Laboratory Records, ORNL R.C.\n  29. R. K. Adams\n  30. Nancy Alexander\n  31. E. D. Arnold\n  32. Don Arnurius\n  33. George J. Atta\n  34. Susie E. Atta\n  35. S. J. Ball\n  36. J. E. Bigelow\n  37. R. E. Biggers\n  38. Craig Brandon\n  39. J. C. Bresee\n  40-41. L. L. Bumgarner\n  42. W. R. Burrus\n  43. H. P. Carter\n  44. D. K. Cavin\n  45. Arline Culkowski\n  46. W. Davis, Jr.\n  47. H. J. de Bruin\n  48. P. B. DeNee\n  49. A. C. Downing\n  50. L. C. Emerson\n  51. Margaret Emmett\n  52. R. L. Ferguson\n  53. B. R. Fish\n  54. P. A. Haas\n  55. M. Feliciano\n  56. Barbara Ann Flores\n  57. T. B. Fowler\n  58. R. E. Funderlic (K-25)\n  59. D. A. Gardiner\n  60. C. D. Griffies\n  61. D. A. Griffin\n  62. D. G. Gosslee\n  63. M. T. Harkrider\n  64. M. C. Hill\n  65. A. S. Householder\n  66. W. H. Jordan\n  67. H. W. Joy\n  68. F. B. K. Kam\n  69. George Kidd\n  70. L. J. King\n  71. Ann Klein\n  72. K. A. Kraus\n  73. C. E. Larson\n  74. M. E. LaVerne\n  75. Elmon Leach\n  76. R. P. Leinius\n  77-78. M. P. Lietzke\n  79. Erlie McDaniel\n  80. C. D. Martin\n  81. K. O. Martin\n  82. Betty F. Maskewitz\n  83. R. P.  Milford\n  84. F. L. Miller, Jr.\n  85. R. V. Miskell\n  86. S. E. Moore\n  87. J. F. Murdock\n  88. C. W. Nestor, Jr.\n  89. V. K. Pare\n  90. Carl E. Parker\n  91. S. K. Penny\n  92. A. M. Perry\n  93. D. C. Ramsey\n  94. M. T. Robinson\n  95. R. M. Rush\n  96. Y. Shima\n  97. J. E. Simpkins\n  98. M. J. Skinner\n  99. C. D. Scott\n  100. C. D. Susano\n  101. J. A. Swartout\n  102. M. E. Tsagaris\n  103. D. K. Trubey\n  104. J. S. Watson\n  105. A. M. Weinberg\n  106. M. E. Whatley\n  107. C. S. Williams\n  108. H. A. Wright\n  109. Y-12 Central Files\n  110. J. H. Zeigler (K-25)\n  111. H. Zeldes\n\n\n\n\n                         EXTERNAL DISTRIBUTION\n\n\n  112. T. H. Elrod, Control Data Corporation, Computer Division, 3330\n          Hillview Avenue, Palo Alto, California\n  113. A. A. Grau, Department of Mathematics, Northwestern University,\n          Evanston, Illinois\n  114. R. G. Stueland, Control Data Corporation, Computer Division, 3330\n          Hillview Avenue, Palo Alto, California\n  115. K. A. Wolf, Control Data Corporation, Programing Systems, 501\n          Park Avenue, Minneapolis 15, Minnesota\n  116. R. A. Zemlin, Control Data Corporation, Computer Division, 3330\n          Hillview Avenue, Palo Alto, California\n  117. Research and Development Division, AEC, ORO\n  118-728. Given distribution as shown in TID-4500 (23rd ed.) under\n          Mathematics and Computers category (75 copies--OTS)\n\n\n\n\n                          Transcriber’s Notes\n\n\n  In the HTML version, represented code in a monospaced font, with\n          keywords in boldface as in the Revised Report.\n  Corrected a few palpable typos.\n  Created an original cover image, using elements from the printed book,\n          for free and unrestricted use with this eBook.\n\n\n\n\n\n\n\n\n\n*** END OF THE PROJECT GUTENBERG EBOOK THE OAK RIDGE ALGOL COMPILER FOR THE CONTROL DATA CORPORATION 1604 ***\n\n\n    \n\nUpdated editions will replace the previous one—the old editions will\nbe renamed.\n\nCreating the works from print editions not protected by U.S. copyright\nlaw means that no one owns a United States copyright in these works,\nso the Foundation (and you!) can copy and distribute it in the United\nStates without permission and without paying copyright\nroyalties. Special rules, set forth in the General Terms of Use part\nof this license, apply to copying and distributing Project\nGutenberg™ electronic works to protect the PROJECT GUTENBERG™\nconcept and trademark. Project Gutenberg is a registered trademark,\nand may not be used if you charge for an eBook, except by following\nthe terms of the trademark license, including paying royalties for use\nof the Project Gutenberg trademark. If you do not charge anything for\ncopies of this eBook, complying with the trademark license is very\neasy. You may use this eBook for nearly any purpose such as creation\nof derivative works, reports, performances and research. Project\nGutenberg eBooks may be modified and printed and given away—you may\ndo practically ANYTHING in the United States with eBooks not protected\nby U.S. copyright law. Redistribution is subject to the trademark\nlicense, especially commercial redistribution.\n\n\nSTART: FULL LICENSE\n\nTHE FULL PROJECT GUTENBERG™ LICENSE\n\nPLEASE READ THIS BEFORE YOU DISTRIBUTE OR USE THIS WORK\n\nTo protect the Project Gutenberg™ mission of promoting the free\ndistribution of electronic works, by using or distributing this work\n(or any other work associated in any way with the phrase “Project\nGutenberg”), you agree to comply with all the terms of the Full\nProject Gutenberg License available with this file or online at\nwww.gutenberg.org/license.\n\nSection 1. General Terms of Use and Redistributing Project Gutenberg\nelectronic works\n\n1.A. By reading or using any part of this Project Gutenberg\nelectronic work, you indicate that you have read, understand, agree to\nand accept all the terms of this license and intellectual property\n(trademark/copyright) agreement. If you do not agree to abide by all\nthe terms of this agreement, you must cease using and return or\ndestroy all copies of Project Gutenberg electronic works in your\npossession. If you paid a fee for obtaining a copy of or access to a\nProject Gutenberg electronic work and you do not agree to be bound\nby the terms of this agreement, you may obtain a refund from the person\nor entity to whom you paid the fee as set forth in paragraph 1.E.8.\n\n1.B. “Project Gutenberg” is a registered trademark. It may only be\nused on or associated in any way with an electronic work by people who\nagree to be bound by the terms of this agreement. There are a few\nthings that you can do with most Project Gutenberg electronic works\neven without complying with the full terms of this agreement. See\nparagraph 1.C below. There are a lot of things you can do with Project\nGutenberg electronic works if you follow the terms of this\nagreement and help preserve free future access to Project Gutenberg\nelectronic works. See paragraph 1.E below.\n\n1.C. The Project Gutenberg Literary Archive Foundation (“the\nFoundation” or PGLAF), owns a compilation copyright in the collection\nof Project Gutenberg electronic works. Nearly all the individual\nworks in the collection are in the public domain in the United\nStates. If an individual work is unprotected by copyright law in the\nUnited States and you are located in the United States, we do not\nclaim a right to prevent you from copying, distributing, performing,\ndisplaying or creating derivative works based on the work as long as\nall references to Project Gutenberg are removed. Of course, we hope\nthat you will support the Project Gutenberg mission of promoting\nfree access to electronic works by freely sharing Project Gutenberg\nworks in compliance with the terms of this agreement for keeping the\nProject Gutenberg name associated with the work. You can easily\ncomply with the terms of this agreement by keeping this work in the\nsame format with its attached full Project Gutenberg License when\nyou share it without charge with others.\n\n1.D. The copyright laws of the place where you are located also govern\nwhat you can do with this work. Copyright laws in most countries are\nin a constant state of change. If you are outside the United States,\ncheck the laws of your country in addition to the terms of this\nagreement before downloading, copying, displaying, performing,\ndistributing or creating derivative works based on this work or any\nother Project Gutenberg work. The Foundation makes no\nrepresentations concerning the copyright status of any work in any\ncountry other than the United States.\n\n1.E. Unless you have removed all references to Project Gutenberg:\n\n1.E.1. The following sentence, with active links to, or other\nimmediate access to, the full Project Gutenberg License must appear\nprominently whenever any copy of a Project Gutenberg work (any work\non which the phrase “Project Gutenberg” appears, or with which the\nphrase “Project Gutenberg” is associated) is accessed, displayed,\nperformed, viewed, copied or distributed:\n\n    This eBook is for the use of anyone anywhere in the United States and most\n    other parts of the world at no cost and with almost no restrictions\n    whatsoever. You may copy it, give it away or re-use it under the terms\n    of the Project Gutenberg™ License included with this eBook or online\n    at www.gutenberg.org. If you\n    are not located in the United States, you will have to check the laws\n    of the country where you are located before using this eBook.\n  \n1.E.2. If an individual Project Gutenberg electronic work is\nderived from texts not protected by U.S. copyright law (does not\ncontain a notice indicating that it is posted with permission of the\ncopyright holder), the work can be copied and distributed to anyone in\nthe United States without paying any fees or charges. If you are\nredistributing or providing access to a work with the phrase “Project\nGutenberg” associated with or appearing on the work, you must comply\neither with the requirements of paragraphs 1.E.1 through 1.E.7 or\nobtain permission for the use of the work and the Project Gutenberg\ntrademark as set forth in paragraphs 1.E.8 or 1.E.9.\n\n1.E.3. If an individual Project Gutenberg electronic work is posted\nwith the permission of the copyright holder, your use and distribution\nmust comply with both paragraphs 1.E.1 through 1.E.7 and any\nadditional terms imposed by the copyright holder. Additional terms\nwill be linked to the Project Gutenberg License for all works\nposted with the permission of the copyright holder found at the\nbeginning of this work.\n\n1.E.4. Do not unlink or detach or remove the full Project Gutenberg\nLicense terms from this work, or any files containing a part of this\nwork or any other work associated with Project Gutenberg.\n\n1.E.5. Do not copy, display, perform, distribute or redistribute this\nelectronic work, or any part of this electronic work, without\nprominently displaying the sentence set forth in paragraph 1.E.1 with\nactive links or immediate access to the full terms of the Project\nGutenberg License.\n\n1.E.6. You may convert to and distribute this work in any binary,\ncompressed, marked up, nonproprietary or proprietary form, including\nany word processing or hypertext form. However, if you provide access\nto or distribute copies of a Project Gutenberg work in a format\nother than “Plain Vanilla ASCII” or other format used in the official\nversion posted on the official Project Gutenberg website\n(www.gutenberg.org), you must, at no additional cost, fee or expense\nto the user, provide a copy, a means of exporting a copy, or a means\nof obtaining a copy upon request, of the work in its original “Plain\nVanilla ASCII” or other form. Any alternate format must include the\nfull Project Gutenberg License as specified in paragraph 1.E.1.\n\n1.E.7. Do not charge a fee for access to, viewing, displaying,\nperforming, copying or distributing any Project Gutenberg works\nunless you comply with paragraph 1.E.8 or 1.E.9.\n\n1.E.8. You may charge a reasonable fee for copies of or providing\naccess to or distributing Project Gutenberg electronic works\nprovided that:\n\n    • You pay a royalty fee of 20% of the gross profits you derive from\n        the use of Project Gutenberg works calculated using the method\n        you already use to calculate your applicable taxes. The fee is owed\n        to the owner of the Project Gutenberg trademark, but he has\n        agreed to donate royalties under this paragraph to the Project\n        Gutenberg Literary Archive Foundation. Royalty payments must be paid\n        within 60 days following each date on which you prepare (or are\n        legally required to prepare) your periodic tax returns. Royalty\n        payments should be clearly marked as such and sent to the Project\n        Gutenberg Literary Archive Foundation at the address specified in\n        Section 4, “Information about donations to the Project Gutenberg\n        Literary Archive Foundation.”\n    \n    • You provide a full refund of any money paid by a user who notifies\n        you in writing (or by e-mail) within 30 days of receipt that s/he\n        does not agree to the terms of the full Project Gutenberg™\n        License. You must require such a user to return or destroy all\n        copies of the works possessed in a physical medium and discontinue\n        all use of and all access to other copies of Project Gutenberg™\n        works.\n    \n    • You provide, in accordance with paragraph 1.F.3, a full refund of\n        any money paid for a work or a replacement copy, if a defect in the\n        electronic work is discovered and reported to you within 90 days of\n        receipt of the work.\n    \n    • You comply with all other terms of this agreement for free\n        distribution of Project Gutenberg™ works.\n    \n\n1.E.9. If you wish to charge a fee or distribute a Project\nGutenberg™ electronic work or group of works on different terms than\nare set forth in this agreement, you must obtain permission in writing\nfrom the Project Gutenberg Literary Archive Foundation, the manager of\nthe Project Gutenberg™ trademark. Contact the Foundation as set\nforth in Section 3 below.\n\n1.F.\n\n1.F.1. Project Gutenberg volunteers and employees expend considerable\neffort to identify, do copyright research on, transcribe and proofread\nworks not protected by U.S. copyright law in creating the Project\nGutenberg™ collection. Despite these efforts, Project Gutenberg™\nelectronic works, and the medium on which they may be stored, may\ncontain “Defects,” such as, but not limited to, incomplete, inaccurate\nor corrupt data, transcription errors, a copyright or other\nintellectual property infringement, a defective or damaged disk or\nother medium, a computer virus, or computer codes that damage or\ncannot be read by your equipment.\n\n1.F.2. LIMITED WARRANTY, DISCLAIMER OF DAMAGES - Except for the “Right\nof Replacement or Refund” described in paragraph 1.F.3, the Project\nGutenberg Literary Archive Foundation, the owner of the Project\nGutenberg™ trademark, and any other party distributing a Project\nGutenberg™ electronic work under this agreement, disclaim all\nliability to you for damages, costs and expenses, including legal\nfees. YOU AGREE THAT YOU HAVE NO REMEDIES FOR NEGLIGENCE, STRICT\nLIABILITY, BREACH OF WARRANTY OR BREACH OF CONTRACT EXCEPT THOSE\nPROVIDED IN PARAGRAPH 1.F.3. YOU AGREE THAT THE FOUNDATION, THE\nTRADEMARK OWNER, AND ANY DISTRIBUTOR UNDER THIS AGREEMENT WILL NOT BE\nLIABLE TO YOU FOR ACTUAL, DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE OR\nINCIDENTAL DAMAGES EVEN IF YOU GIVE NOTICE OF THE POSSIBILITY OF SUCH\nDAMAGE.\n\n1.F.3. LIMITED RIGHT OF REPLACEMENT OR REFUND - If you discover a\ndefect in this electronic work within 90 days of receiving it, you can\nreceive a refund of the money (if any) you paid for it by sending a\nwritten explanation to the person you received the work from. If you\nreceived the work on a physical medium, you must return the medium\nwith your written explanation. The person or entity that provided you\nwith the defective work may elect to provide a replacement copy in\nlieu of a refund. If you received the work electronically, the person\nor entity providing it to you may choose to give you a second\nopportunity to receive the work electronically in lieu of a refund. If\nthe second copy is also defective, you may demand a refund in writing\nwithout further opportunities to fix the problem.\n\n1.F.4. Except for the limited right of replacement or refund set forth\nin paragraph 1.F.3, this work is provided to you ‘AS-IS’, WITH NO\nOTHER WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT\nLIMITED TO WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PURPOSE.\n\n1.F.5. Some states do not allow disclaimers of certain implied\nwarranties or the exclusion or limitation of certain types of\ndamages. If any disclaimer or limitation set forth in this agreement\nviolates the law of the state applicable to this agreement, the\nagreement shall be interpreted to make the maximum disclaimer or\nlimitation permitted by the applicable state law. The invalidity or\nunenforceability of any provision of this agreement shall not void the\nremaining provisions.\n\n1.F.6. INDEMNITY - You agree to indemnify and hold the Foundation, the\ntrademark owner, any agent or employee of the Foundation, anyone\nproviding copies of Project Gutenberg™ electronic works in\naccordance with this agreement, and any volunteers associated with the\nproduction, promotion and distribution of Project Gutenberg™\nelectronic works, harmless from all liability, costs and expenses,\nincluding legal fees, that arise directly or indirectly from any of\nthe following which you do or cause to occur: (a) distribution of this\nor any Project Gutenberg work, (b) alteration, modification, or\nadditions or deletions to any Project Gutenberg work, and (c) any\nDefect you cause.\n\nSection 2. Information about the Mission of Project Gutenberg\n\nProject Gutenberg is synonymous with the free distribution of\nelectronic works in formats readable by the widest variety of\ncomputers including obsolete, old, middle-aged and new computers. It\nexists because of the efforts of hundreds of volunteers and donations\nfrom people in all walks of life.\n\nVolunteers and financial support to provide volunteers with the\nassistance they need are critical to reaching Project Gutenberg’s\ngoals and ensuring that the Project Gutenberg collection will\nremain freely available for generations to come. In 2001, the Project\nGutenberg Literary Archive Foundation was created to provide a secure\nand permanent future for Project Gutenberg and future\ngenerations. To learn more about the Project Gutenberg Literary\nArchive Foundation and how your efforts and donations can help, see\nSections 3 and 4 and the Foundation information page at www.gutenberg.org.\n\nSection 3. Information about the Project Gutenberg Literary Archive Foundation\n\nThe Project Gutenberg Literary Archive Foundation is a non-profit\n501(c)(3) educational corporation organized under the laws of the\nstate of Mississippi and granted tax exempt status by the Internal\nRevenue Service. The Foundation’s EIN or federal tax identification\nnumber is 64-6221541. Contributions to the Project Gutenberg Literary\nArchive Foundation are tax deductible to the full extent permitted by\nU.S. federal laws and your state’s laws.\n\nThe Foundation’s business office is located at 41 Watchung Plaza #516,\nMontclair NJ 07042, USA, +1 (862) 621-9288. Email contact links and up\nto date contact information can be found at the Foundation’s website\nand official page at www.gutenberg.org/contact\n\nSection 4. Information about Donations to the Project Gutenberg\nLiterary Archive Foundation\n\nProject Gutenberg™ depends upon and cannot survive without widespread\npublic support and donations to carry out its mission of\nincreasing the number of public domain and licensed works that can be\nfreely distributed in machine-readable form accessible by the widest\narray of equipment including outdated equipment. Many small donations\n($1 to $5,000) are particularly important to maintaining tax exempt\nstatus with the IRS.\n\nThe Foundation is committed to complying with the laws regulating\ncharities and charitable donations in all 50 states of the United\nStates. Compliance requirements are not uniform and it takes a\nconsiderable effort, much paperwork and many fees to meet and keep up\nwith these requirements. We do not solicit donations in locations\nwhere we have not received written confirmation of compliance. To SEND\nDONATIONS or determine the status of compliance for any particular state\nvisit www.gutenberg.org/donate.\n\nWhile we cannot and do not solicit contributions from states where we\nhave not met the solicitation requirements, we know of no prohibition\nagainst accepting unsolicited donations from donors in such states who\napproach us with offers to donate.\n\nInternational donations are gratefully accepted, but we cannot make\nany statements concerning tax treatment of donations received from\noutside the United States. U.S. laws alone swamp our small staff.\n\nPlease check the Project Gutenberg web pages for current donation\nmethods and addresses. Donations are accepted in a number of other\nways including checks, online payments and credit card donations. To\ndonate, please visit: www.gutenberg.org/donate.\n\nSection 5. General Information About Project Gutenberg electronic works\n\nProfessor Michael S. Hart was the originator of the Project\nGutenberg concept of a library of electronic works that could be\nfreely shared with anyone. For forty years, he produced and\ndistributed Project Gutenberg eBooks with only a loose network of\nvolunteer support.\n\nProject Gutenberg eBooks are often created from several printed\neditions, all of which are confirmed as not protected by copyright in\nthe U.S. unless a copyright notice is included. Thus, we do not\nnecessarily keep eBooks in compliance with any particular paper\nedition.\n\nMost people start at our website which has the main PG search\nfacility: www.gutenberg.org.\n\nThis website includes information about Project Gutenberg,\nincluding how to make donations to the Project Gutenberg Literary\nArchive Foundation, how to help produce our new eBooks, and how to\nsubscribe to our email newsletter to hear about new eBooks."},"generated_at":"2026-12-01T07:47:58Z"}