HP C/iX Reference Manual (31506-90011)
Chapter 8 115
Compiling and Running HP C/iX Programs
Compiling HP C/iX Programs
The PARM parameter of the RUN command indicates which files have been equated. This
directs the compiler to use these files instead of the default files. The RUN command takes
a PARM parameter with an integral value in the range 0 to 7. The low-order three bits of
the PARM value represent the source, object, and list files as shown in the following
diagram.
Bit 29 Bit 30 Bit 31
| object | listing | source |
The integral value sets the low-order bits as shown in the following table.
An error occurs if you use a PARM value that sets a bit for a file for which no file equation
exists. If a file equation exists, but the bit is not set in the PARM value, the compiler uses
the default value.
The RUN command also has an optional INFO parameter. You can use this parameter to
pass options, delimited with blanks, to the compiler.
Example
FILE CCTEXT = MYFILE
FILE CCLIST = MYLIST
RUN CCOMXL.PUB.SYS;PARM=3;INFO="-O"
This example compiles the file MYFILE, places the object code in $NEWPASS (the default),
writes the listing to MYLIST, and passes the -O option to the compiler.
List $STDLIST CCLIST
Table 8-2. Low-order Bit Values
Value Files in FILE Commands
0 None
1 Source
2 Listing
3 Listing, source
4 Object
5 Object, source
6 Object, listing
7 Object, listing, source
Table 8-1. Default Files and Designators
File Type Default Designator