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

Usage Guidelines
On Guardian environment, the NLD pragma must be entered on the compiler RUN command
line for TNS/R native C and C++. On OSS environment, specify the NLD pragma by using
the -Wnld=arg option with the c89 utility.
If you are linking TNS/R PIC (Position-Independent Code), you must use the LD(arg) pragma
to specify arguments to the ld utility.
If you are linking TNS/E PIC (Position-Independent Code), you must use the -Weld=arg
command-line flag to specify arguments to the eld utility.
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.
NOEXCEPTIONS
The pragma default settings are:
SYSTYPE OSSSYSTYPE GUARDIAN
N.A.N.A.TNS C compiler
N.A.N.A.G-series TNS c89 utility
Not setNot setTNS/R native C and C++ compilers
Not setNot setNative c89 and c99 utilities
Not setNot setTNS/E native C and C++ compilers
Usage Guidelines
On Guardian environment, the NOEXCEPTIONS pragma can appear only on the RUN
command line for NMCPLUS or CPPCOMP. On OSS environment, the -Wnoexceptions
option can appear only on the RUN command line for the native c89 or the c99 utility.
The NOEXCEPTIONS directive affects only native C++ programs compiled with the VERSION2
or VERSION3 dialects. The directive is ignored for C programs and C++ programs compiled
using VERSION1.
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 221