C/C++ Programmer's Guide (G06.25+)

Compiler Pragmas
HP C/C++ Programmer’s Guide for NonStop Systems429301-008
13-101
SYNTAX
The SYMBOLS pragma affects the INSPECT pragmas: if you specify SYMBOLS, the
compiler automatically enables Visual Inspect and the source-level symbolic
debugger, as though you had explicitly specified INSPECT.
In native mode, the SYMBOLS pragma cannot include the NODEFINES option.
SYNTAX
The SYNTAX pragma directs the compiler to not generate an object file but merely to
check the source text for syntactic and semantic errors.
The pragma default settings are:
Usage Guidelines
For TNS C and C++ programs, the SYNTAX pragma must appear on the compiler
RUN command line or at the start of the source text before any declarations or
source code statements.
For native C and C++ programs, the SYNTAX pragma can be entered on the
compiler RUN command line or be specified with the -Wsyntax flag of the c89
utility.
SYSTYPE
The SYSTYPE pragma controls whether the generated code’s target execution
environment is the Guardian or OSS environment.
The pragma default settings are:
SYNTAX
SYSTYPE GUARDIAN SYSTYPE OSS
TNS C compiler Not set Not set
G-series TNS c89 utility Not set Not set
TNS/R native C and C++ compilers Not set Not set
Native c89 utility Not set Not set
TNS/E native C and C++ compilers Not set Not set
SYSTYPE { GUARDIAN | OSS }
Guardian Environment OSS Environment
TNS C compiler GUARDIAN N.A.
G-series TNS c89 utility N.A. OSS