C/C++ Programmer's Guide (G06.25+)

Using the HP Enterprise Toolkit (ETK) and Native
C/C++ Cross Compiler on the PC
HP C/C++ Programmer’s Guide for NonStop Systems429301-008
18-6
Cross Compilers
Cross Compilers
Several cross compilers work with the ETK or the TDS:
Native C/C++ PC Cross Compiler
pTAL Cross Compiler
EpTAL Cross Compiler on page 18-7
COBOL85 Cross Compilers on page 18-7
The ETK cross compiler package is installed with an HTML help file (“Using the
Command-Line Cross Compilers on Windows”).
Native C/C++ PC Cross Compiler
Using the ETK or the TDS, you can compile with the native C/C++ PC cross compiler,
which is essentially the same as the native C/C++ compiler available on HP NonStop
servers. The ETK PC cross compiler produces TNS/R or TNS/E native object code that
runs on NonStop servers in the Guardian or OSS environment; the TDS PC cross
compiler produces TNS/R native object code that runs on G-series NonStop servers in
the Guardian or OSS environment.
You can invoke the cross compiler from the command line (DOS prompt) if you are
using the native C/C++ cross compiler (named c89), version G06.14 and later. The
command-line input format is similar to that of c89 on the OSS platform.
You can embed SQL/MP or SQL/MX statements into native mode C/C++ source code
from the command-line. You need to specify the host, user logon, and NonStop server
location (Guardian subvolume or OSS directory). For more information, see:
The online help for the ETK or TDS
The HTML help file for the ETK named “Using Command-Line Cross Compilers on
Windows”
SQL/MP Programming Manual for C
SQL/MX Progamming Manual for C and COBOL
pTAL Cross Compiler
The optional pTAL cross compiler compiles pTAL code that will run on TNS/R NonStop
servers. The pTAL cross compiler:
Targets only the Guardian environment, not OSS
Can produce the following:
°
Object files suitable for input to the nld or ld linker
°
Executable files suitable for running on TNS/R systems
These files are identical, except for embedded file names, to objects and
executable files created on other platforms by the pTAL compiler.