SQL/MP Programming Manual for C
Explicit Program Compilation
HP NonStop SQL/MP Programming Manual for C—429847-008
6-10
Running the TNS/R NMC and TNS/E CCOMP
Compiler in the Guardian Environment
For more information about TNS C compiler pragmas or preprocessor symbols, 
see the C/C++ Programmer’s Guide for NonStop Systems.
Running the TNS/R NMC and TNS/E CCOMP Compiler in the 
Guardian Environment
To run the TNS/R NMC compiler in the Guardian environment, use the NMC 
command. To run the TNS/E CCOMP compiler (available only on H-Series RVUs) in 
the Guardian environment, use the CCOMP command: 
IN source
specifies the primary source file of the module. This file must be a valid Guardian 
disk file of type 101 (edit) or type 180 (C-format). Interactive input from a terminal 
or a process is not accepted.
OUT list-file
specifies the file to which the native 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. If the file already 
exists, the compiler tries to delete the file and then continue.
run-option
is one or more TACL RUN command options (separated by commas), as described 
in the TACL Reference Manual.
object
specifies the file to which the native 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 the file 
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.
compiler-option
modifies the compiler operation by specifying a compiler pragma or defining a 
preprocessor symbol as follows:
[ RUN ] {NMC|CCOMP} / IN source [, OUT list-file ] [ , run-
option] [object ] [ ; compiler-option [ , compiler-option 
]... ]
compiler-option: one of 
 pragma
 define identifier [ constant ]
 undefine identifier










