User`s guide

FORTRAN
The next command creates a listing file called MYPROG.LST on DU1:
.FORTRAN/LIST:DU1: MYPROG
To include your own listing-file name, specify the name with the /LIST option.
For example, the following command compiles A.FOR and B.FOR together,
producing object file A.OBJ and listing file AANDB.OUT on device DK:
.FORTRAN/LIST:AANDB.OUT A+B
To produce a listing file of the same name as a particular file, specify /LIST
after that file. For example, the following command compiles A.FOR and
B.FOR together, producing files DK:A.OBJ and DU1:B.LST:
.FORTRAN A+B/LIST:DU1:
/[NO]OBJECT[:filespec]
/OBJECT specifies a file name or device for the object file.
Because FORTRAN creates object files by default, the following three commands
have the same meaning:
.FORTRAN PROG1.FOR
.FORTRAN/OBJECT PROG1.FOR
.FORTRAN PROG1/OBJECT
These commands compile PROG1.FOR and produce PROG1.OBJ as output. Like
the /LIST option, the /OBJECT option can be either a command option or a file
qualifier.
As a command option, /OBJECT applies across the entire command string.
The following command, for example, compiles PROG1.FOR and PROG2.FOR
separately, creating object files PROG1.OBJ and PROG2.OBJ on DU1:
.FORTRAN/OBJECT:DU1: PROG1,PROG2
Use /OBJECT as a file qualifier to create an object file with a specific name
or destination. The following command compiles PROG1.FOR and PROG2.FOR
together, creating files PROG2.LST and PROG2.OBJ.
.FORTRAN PROG1+PROG2/LIST/OBJECT
/NOOBJECT suppresses the creation of an object file. As a command option,
/NOOBJECT suppresses all object files; as a file option, it suppresses only the
object file produced by compilation of the related input files. In this command, for
example, the system compiles PROG1.FOR and PROG2.FOR together, producing
files PROG1.OBJ and PROG2.LST. It also compiles PROG3.FOR and produces
PROG3.LST, but does not produce PROG3.OBJ:
.FORTRAN PROG1+PROG2/LIST,PROG3/NOOBJECT/LIST
/ONDEBUG
Includes debug lines (those that have a D in column one) in the compilation. So,
you do not have to edit the file to include these lines in the compilation or to
logically remove them.
134 RT–11 Command Descriptions