HP C/iX Reference Manual (31506-90011)
Chapter 8 113
Compiling and Running HP C/iX Programs
Compiling HP C/iX Programs
CCXLLK Command
The CCXLLK command invokes the HP C/iX compiler, generates an object file, and links
the object file with the HP C/iX library to produce an executable program file.
Syntax
CCXLLK
[textfile] [,[programfile] [,[listfile]] [
;INFO="options"]
Parameters
textfile
is the source file that the HP C/iX compiler reads. If omitted, the default is
$STDIN.
programfile
is the program file to which the linker writes the linked program. If
omitted, the default is $NEWPASS.
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
.
Examples
CCXLLK MYTEXT,MYPROG
This example compiles the source file MYTEXT, places the linked program in MYPROG, and
writes the list file to $STDLIST.
CCXLLK ,MYPROG,MYLIST;INFO="-Wc,-r"
This example compiles from $STDIN (by default), places the linked program in MYPROG,
writes the list file to MYLIST, and passes the -Wc,-r option to the compiler.
CCXLGO Command
The CCXLGO command invokes the HP C/iX compiler, generates an object file, links the
object file with the HP C/iX library to produce an executable program, and then runs the
program.
Syntax
CCXLGO [
textfile
] [,[
listfile
][
;INFO="options"
]