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

Compiler Pragmas
HP C/C++ Programmer’s Guide for NonStop Systems429301-008
13-103
TRIGRAPH
Usage Guidelines
The TANDEM_FLOAT directive can be entered on the compiler RUN command line
or with the -W Tandem_float flag of the c89 program.
In RVUs preceding the G06.06 release, only the proprietary Tandem floating-point
format was available. With the introduction of the processor-hosted IEEE floating-
point format at G06.06, you can choose either Tandem floating-point format or
IEEE floating-point format. For more information, see Compiling and Linking
Floating-Point Programs on page 16-4.
For a high-level discussion of differences between IEEE and Tandem floating-
point, see IEEE Floating-Point Arithmetic on page 4-7.
For detailed information about differences between the IEEE and Tandem floating-
point formats, see pragma IEEE_FLOAT on page 13-45.
TRIGRAPH
The TRIGRAPH pragma controls whether the TNS C compiler or Cfront translate
trigraphs for the current compilation. When the TRIGRAPH pragma is in effect, the
compiler recognizes the trigraphs and replaces them with their corresponding C
tokens. When NOTRIGRAPH is in effect, the compiler does not support the trigraph
feature and treats each character in the trigraph as a C token.
The pragma default settings are:
TNS/R native C and C++ compilers TANDEM_FLOAT TANDEM_FLOAT
Native c89 utility For TNS/R code:
TANDEM_FLOAT
For TNS/E code:
IEEE_FLOAT
For TNS/R code:
TANDEM_FLOAT
For TNS/E code:
IEEE_FLOAT
TNS/E native C and C++ compilers IEEE_FLOAT IEEE_FLOAT
[NO]TRIGRAPH
SYSTYPE GUARDIAN SYSTYPE OSS
TNS C compiler NOTRIGRAPH NOTRIGRAPH
G-series TNS c89 utility NOTRIGRAPH NOTRIGRAPH
TNS/R native C and C++ compilers N.A. N.A.
Native c89 utility N.A. N.A.
TNS/E native C and C++ compilers N.A. N.A.
SYSTYPE GUARDIAN SYSTYPE OSS