A SERVICE OF

logo

126 Chapter 3
Command Definitions C-E
CCXL
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