C/C++ Programmer's Guide (G06.27+, H06.03+)

Table Of Contents
Compiler Pragmas
HP C/C++ Programmer’s Guide for NonStop Systems429301-010
13-66
NOEXCEPTIONS
The NLD pragma does not invoke the linker. To invoke nld, you must include other
pragmas such as RUNNABLE or LINKFILE. If nld is not invoked, the NLD pragma
is ignored.
You cannot use the NLD directive if you also use either of these directives:
°
CALL_SHARED
°
SHARED
Example
This 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 environment, the NOEXCEPTIONS pragma can appear only on the
RUN command line for NMCPLUS or CPPCOMP. On OSS environment, 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