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

Compiler Pragmas
HP C/C++ Programmer’s Guide for NonStop Systems429301-008
13-102
TANDEM_FLOAT
Usage Guidelines
The SYSTYPE pragma can be entered on the compiler RUN command line or be
specified with the -Wsystype flag of the c89 utility. A SYSTYPE pragma in the
source text does not change the target environment; it is only an affirmation of the
target environment.
The compiler issues an error if a SYSTYPE pragma specified in the source text
differs from:
°
The SYSTYPE pragma specified on the RUN command line.
°
The -Wsystype flag of the c89 utility.
°
The compiler default environment.
If you run the compiler in the Guardian environment, the default setting is SYSTYPE
GUARDIAN. If you run the compiler in the OSS environment (with the c89 utility),
the default setting is SYSTYPE OSS.
The SYSTYPE GUARDIAN and SYSTYPE OSS pragmas set the default values for
many other pragmas.
Pragma SYSTYPE GUARDIAN defines the _GUARDIAN_TARGET and
_TANDEM_SOURCE macros. Pragma SYSTYPE OSS defines the _OSS_TARGET and
_XOPEN_SOURCE macros. Because the SYSTYPE pragma defines and undefines
macros, you must specify the SYSTYPE pragma before any definitions in the RUN
command line or in a source file.
TANDEM_FLOAT
The TANDEM_FLOAT directive specifies that the native C or C++ compiler is to use the
proprietary Tandem floating-point format for performing floating-point operations.
The pragma default settings are:
TNS/R native C and C++ compilers GUARDIAN N.A.
Native c89 utility N.A. OSS
TNS/E native C and C++ compilers GUARDIAN N.A.
TANDEM_FLOAT
SYSTYPE GUARDIAN SYSTYPE OSS
TNS C compiler N.A. N.A.
G-series TNS c89 utility N.A. N.A.
Guardian Environment OSS Environment