HP C/iX Reference Manual (31506-90011)
114 Chapter8
Compiling and Running HP C/iX Programs
Compiling HP C/iX Programs
Parameters
textfile
is the source file that the HP C/iX compiler reads. If omitted, the default is
$STDIN.
listfile
is the listing file. If omitted, the default is $STDLIST.
options are compiler options you want to take effect; separate options with a
blank. See "HP C/iX Compiler Options" later in this chapter for specific
options.
Description
If you omit
textfile,
the current input device, $STDIN, is used by default. Typically, the
terminal is the standard input device, and this allows you to enter source code
interactively. You should indicate the end of the interactive session by entering a colon (:).
If you omit
listfile,
the standard listing file, $STDLIST, is used by default. Typically, a
listing is sent to the terminal during a terminal session or to the printer in a batch job. If
listfile
is a file other than $STDLIST, the compiler writes errors and warnings to
$STDLIST and
listfile
.
CCXLGO has the side effect of creating a temporary program file named $NEWPASS.
Example
CCXLGO MYTEXT,$NULL
This example compiles the HP C/iX source file MYTEXT without listing it to the terminal,
links and runs the resulting program, and places the linked program in $NEWPASS. If
$NULL is omitted, the compilation listing appears on the screen.
RUN CCOMXL.PUB.SYS
You can also compile HP C/iX programs using the MPE RUN command. The HP C/iX
compiler is located in the program file CCOMXL in the PUB group of the SYS account. The
compiler uses the default files unless you override the default values. To override the
default values you needed to perform the following steps:
1. Equate the file you want to substitute for the default file with its formal file designator
using the MPE FILE command.
2. Select an appropriate value of the PARM parameter of the RUN command. This value
indicates which files are not defaulted.
The HP C/iX compiler recognizes the following default files and formal file designators:
Table 8-1. Default Files and Designators
File Type Default Designator
Source $STDIN CCTEXT
Object $NEWPASS CCOBJ