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

Table 37 Commonly Used TNS c89 Flags and Guardian Environment Equivalents (continued)
Equivalent Guardian environment actionSpecify this flag:To direct c89 to:
Specify arguments on the Accelerator
command line or in a command file
-Waxcel [="arguments"]Pass an argument string to the
Accelerator
Specify arguments in a Binder
command file or run the Binder
interactively
-Wbind [= "arguments"]Pass an argument string to the Binder
Specify pragmas on the C compiler
command line or in a source file
-Wccom [= "arguments"]Pass an argument string to the C
compiler
No equivalent in the Guardian
environment
-Wcprep [= "arguments"]Pass an argument string to the C
language preprocessor
Run the SQL compiler-Wsql [= "arguments"]Pass an argument string to the SQL
compiler
Specify the SYMBOLS pragma-gProduce symbolic debugging
information
Specify the SYSTYPE GUARDIAN
pragma on the C compiler RUN
command line or by default
-Wsystype = "guardian"Specify the module runs in the
Guardian environment
Specify the SYSTYPE OSS pragma on
the C compiler RUN command line
-Wsystype = "oss"Specify the module runs in the OSS
environment (default)
No equivalent in the Guardian
environment
-WBdynamicSelect dynamic binding
Default behavior-WBstaticSelect static binding
Do not specify the RUNNABLE pragma-WnobindSuppress the invocation of Binder
No equivalent in the Guardian
environment
-o outfileUse the pathname outfile instead
of the default a.out for the
executable file produced
Specify the #define preprocessor
directive in the source file or use the C
compiler command line define option
-D nameDefine a preprocessor symbol
Specify the #undef preprocessor
directive or use the C compiler
command line undefine option
-U nameUndefine a preprocessor symbol
Specify the SSV pragma-I directoryChange the search algorithm for
header files
Similar to specifying the SEARCH
pragma
-L directoryChange the search algorithm for
library files
Binding an OSS TNS Module
By default, the TNS c89 utility performs dynamic binding. In dynamic binding, the Binder resolves
references to library functions using a TNS shared run-time library (SRL). Final resolution of references
is performed at run time. A TNS shared run-time library (SRL) is a special form of a TNS user library
that can contain global variables. Programs that use an SRL cannot use a user library. HP provides
TNS SRLs for OSS and NonStop TUXEDO. You cannot build your own TNS SRLs. Do not confuse
TNS SRLs with the TNS/R native SRLs provided on D40 and later software releases. For information
on native SRLs, see Shared Run-Time Libraries (SRLs) (page 294).
TNS c89 uses the SRL libc.so in the OSS file system by default. libc.so is equivalent to the
libraries libc.a and libm.a in a UNIX environment and COSS in the Guardian environment.
Dynamic binding produces smaller program files and uses fewer system resources than static
binding.
270 Compiling, Binding, and Accelerating TNS C Programs