SQL/MP Programming Manual for C

Explicit Program Compilation
HP NonStop SQL/MP Programming Manual for C429847-008
6-11
Binding SQL Program Files in the Guardian
Environment
pragma
is any valid compiler pragma.
NonStop SQL/MP supports Tandem floating-point format but not IEEE floating-
point format. The floating-point format for TNS/R native compilation is Tandem
by default. However, for TNS/E native compilation, the floating-point format is
IEEE by default. Follow these guidelines when compiling C programs that
contain embedded SQL/MP statements:
For TNS/R native compilation, do not specify the IEEE_FLOAT compiler
pragma. The floating-point format must be the default TANDEM_FLOAT.
For TNS/E native compilation, specify the TANDEM_FLOAT compiler
pragma to override the default IEEE_FLOAT.
For more information, see “Compiling and Linking Floating-Point Programs” in
the C/C++ Programmer’s Guide.
define identifier [ constant ]
defines identifier as a preprocessor symbol. If identifier is followed by
a constant, it is defined as an object-like macro that expands to the given
value. The define option is equivalent to using the #define preprocessor
directive in source text.
undefine identifier
deletes identifier as a preprocessor symbol. The undefine option is
equivalent to using the #undef preprocessor directive in source text.
Binding SQL Program Files in the Guardian Environment
The Binder program is a tool you can use to read, link, modify, and build executable
object files in the TNS environment. You can bind C, COBOL, Pascal, and TAL object
files, including SQL program files.
To bind object files in the TNS/R environment, use the native link utilities (nld and ld),
which are described in the nld Manual and the ld Manual. To bind object files in the
TNS/E environment, use the native link utilities (eld and eNOFT) which are described
in the eld Manual and eNOFT Manual.
Follow these guidelines when you bind or link SQL program files:
Handle SQL program files like other object files.
Bind object files after they are compiled by the TNS C compiler. (You can bind
object files after running the SQL compiler. However, the binding operation
invalidates the resulting target file, and you must then explicitly recompile the
program file to validate it.)
SQL compile only the final bound object. In other words, do not separately SQL
compile each object of a multiple-module program.