C/C++ Programmer's Guide (G06.27+, H06.03+)

Table Of Contents
Compiling, Binding, and Accelerating TNS C
Programs
HP C/C++ Programmer’s Guide for NonStop Systems429301-010
14-5
Compiling a C Module
[ RUN ] C
is the TACL command to start the C compiler process. Note that the command
keyword RUN is optional.
IN source
specifies the primary source file of the module.
OUT listing
specifies the file to which the C compiler writes the compiler listing. When
specified, listing is usually a spooler location. If you omit the OUT option, the
compiler writes the listing to your current default output file.
run-options
is a comma-separated list of additional options for the RUN command. These
options are described in the TACL Reference Manual.
object
specifies the file to which the C compiler writes the object code for the source text.
If you do not specify an object file, the compiler writes the object code to the file
OBJECT in your current default volume and subvolume. If OBJECT cannot be
created, the compiler writes the object code to the file ZZBInnnn (where nnnn is a
unique four-digit number) in your current default volume and subvolume.
compile-option
modifies compiler operation by specifying a compiler pragma or defining a
preprocessor symbol.
pragma
is any compiler pragma. If you want, you can abbreviate the pragma name.
The rule is that you must specify enough letters of the pragma name to make
the name unique. For example, you need at least RUNNAB for the RUNNABLE
pragma, because otherwise it would be confused with the RUNNAMED pragma.
define identifier [ integer-constant ]
defines identifier as a preprocessor symbol. If identifier is followed by
an integer constant, it is defined as an object-like macro that expands to the
given value. define is equivalent to using the #define preprocessor
directive in source text.
undefine identifier
deletes identifier as a preprocessor symbol. Using undefine is
equivalent to using the #undef preprocessor directive in source text.