User`s guide
COMPILE
MACRO programs. In the example below, the two files A.FOR and B.FOR are
compiled together, producing B.OBJ and B.LST.
The MACRO assembler assembles C.MAC, satisfying .MCALL references from
MYLIB.MAC and SYSMAC.SML. It produces C.OBJ and C.LST:
.COMPILE A+B/LIST/OBJECT,MYLIB/LIBRARY+C.MAC/LIST/OBJECT
/[NO]LINENUMBERS
(DIBOL or FORTRAN) Includes internal sequence numbers in the executable
program. These numbers are especially useful in debugging programs. This is
the default operation.
/NOLINENUMBERS, used with /DIBOL or /FORTRAN, suppresses the
generation of internal sequence numbers in the executable program. This
produces a smaller program and optimizes execution speed. Use this option
to compile only those programs that are already debugged; otherwise, the line
numbers in DIBOL or FORTRAN error messages are difficult to interpret.
/NOLINENUMBERS, with FORTRAN–77, requests no traceback information.
/LIST[:filespec]
You must specify this option to produce a compilation or assembly listing.
The /LIST option has the following different meanings depending on its position
in the command line:
• If you specify /LIST without a file specification in the list of options that
immediately follows the COMPILE command, the system generates a listing
that prints on the line printer.
• If you specify /LIST with a device name, the system creates a listing file on
that device. If the device is a file-structured device, the system stores the
listing file on that device, assigning it the first input file name and a LST file
type. For example, the following command produces a listing on the terminal:
.COMPILE/LIST:TT: A.FOR
The next command creates a listing file called A.LST on DU1:
.COMPILE/LIST:DU1: A.MAC
• If the /LIST option contains a name and file type to override the default of
LST, the system generates a listing file with that name and file type.
The following command compiles A.FOR and B.FOR together, producing files
A.OBJ and AANDB.OUT on device DK:
.COMPILE/FORTRAN/LIST:AANDB.OUT A+B
• If you specify /LIST after the file specification to which it applies, you produce
a listing file with the same name as a particular input file.
The following command compiles A.DBL and B.DBL together, producing files
DK:A.OBJ and DU1:B.LST:
36 RT–11 Command Descriptions










