SQL/MP Programming Manual for C
Explicit Program Compilation
HP NonStop SQL/MP Programming Manual for C—429847-008
6-2
Explicit Program Compilation
Table 6-1. C Compilers
Table 6-2. Compilation Mode and Execution Environment
Figure 6-1, Figure 6-2 and Figure 6-3 show the general steps that you follow to compile
a program on the TNS, TNS/R, and TNS/E platforms.
Compiler Compilation Mode
Compiler Operating
Environment
NonStop
System
C TNS Guardian D-series
G-series
H-series
c89 TNS OSS D-series
G-series
NMC TNS/R native Guardian D-series
G-series
c89 TNS/R native OSS D-series
G-series
Native C cross
compiler for TNS/R
TNS/R native PC D-series host
*
G-series host
CCOMP TNS/E native Guardian H-series
**
c89 TNS/E native OSS H-series
Native C cross
compiler for TNS/E
TNS/E native PC H-series host
*
The HP Enterprise Toolkit—NonStop Edition (ETK) and PC command line are not supported on D-series
systems. Instead, use the native C cross compiler of the Tandem Development Suite (TDS). For more
information, see the C/C++ Programmer’s Guide for NonStop Systems.
**
NonStop SQL/MP is only compatible with c89 and not c99.
Compilation Mode
NonStop System Where You Can Execute the Embedded SQL
Program
TNS D-series or G-series (TNS/R)
H-series (TNS/E)
TNS/R native D-series or G-series (TNS/R)
TNS/E native H-series (TNS/E)
Note. The hardware architecture of TNS is based on complex instruction-set computing
(CISC), TNS/R is based on reduced instruction-set computing (RISC) and TNS/E is based on
Intel Itanium. These different architectures affect the compilation and running of SQL/MP
application programs and influence where and how application development is done. For
example, in a multinode environment that involves different hardware platforms (for example,
TNS, TNS/R, and TNS/E), one development strategy might be to use the TNS/E platform for
application development and then deploy the applications to the other platforms.