MPE/iX Commands Reference Manual (32650-90877)

106 Chapter4
Command List II
Commands CALC thru COPY
Examples
The following example compiles an HP C/iX program entered from your standard input
device and stores the object program in the object file $OLDPASS. The listing is then sent to
your standard list device.
CCXL
The next example compiles an HP C/iX program contained in the disk file SOURCE and
stores the object program in the object file OBJECT. The program listing is stored in the
disk file LISTFILE.
CCXL SOURCE,OBJECT,LISTFILE
Program development in native mode uses the MPE/iX LINK command, not the MPE V/E
PREP command. This produces a significant change in the method of linking code. In
MPE/iX, you must compile the source files into separate object files and then use the Link
Editor to link the two object files into the program file, as in this example:
CCXL MAIN, OBJMAIN
CCXL SUB, OBJSUB
LINK FROM=OBJMAIN,OBJSUB;TO=SOMEPROG;RL=LIBCINIT.LIB.SYS
RUN SOMEPROG
Related Information
Commands CCXLGO, CCXLLK, RUN, LINK, XEQ, LINKEDIT Utility
Manuals HP C Programmer's Guide
CCXLGO
Compiles, links, and executes an HP C/iX program. HP C/iX is not part of the HP 3000
Series 900 Computer System Fundamental Operating Software and must be purchased
separately. This command is recognized only if HP C/iX is installed on your system.
(Native Mode)
Syntax
CCXLGO[
textfile
] [,[
listfile
]] [;INFO=
quotedstring
]
NOTE
This command follows the optional MPE/iX command line syntax. Refer to
"Optional Format for MPE/iX Commands" at the beginning of this chapter.
Parameters
textfile
The name of the text file that contains the source code to be compiled. This
is an ASCII file that you prepare with an editor such as EDIT/3000. The
formal file designator is CCTEXT.
If you are running HP C/iX from your terminal, you will probably specify a
disk
textfile
. If you do not specify
textfile
, then the default file is
$STDIN. $STDIN is the current input device, usually your terminal.