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

Compiler Pragmas
HP C/C++ Programmer’s Guide for NonStop Systems429301-008
13-67
NOEXCEPTIONS
°
CALL_SHARED
°
SHARED
Example
The following command invokes the TNS/R native mode C compiler and uses the NLD
directive to pass options to the nld utility:
nmc /in prog1/ prog1o;nld(-set highpin off -set highrequester off),runnable
NOEXCEPTIONS
The NOEXCEPTIONS compiler directive directs the native C++ compiler to disable
support for exceptions and exception handling.
The pragma default settings are:
Usage Guidelines
On Guardian, the NOEXCEPTIONS pragma can appear only on the RUN command
line for NMCPLUS or CCOMP. On OSS, the -Wnonexceptions option can
appear only on the RUN command line for the native c89 utility.
The NOEXCEPTIONS directive affects only native C++ programs compiled with the
VERSION2 dialect. The directive is ignored for C programs and C++ programs
compiled using VERSION1 or VERSION3.
The NOEXCEPTIONS directive can improve application performance by removing
unneeded processing steps with an application that does not use exceptions or
perform exception handling.
NOEXCEPTIONS
SYSTYPE GUARDIAN SYSTYPE OSS
TNS C compiler N.A. N.A.
G-series TNS c89 utility N.A. N.A.
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