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

Table Of Contents
Using ETK and Native C/C++ Cross Compiler on the
PC
HP C/C++ Programmer’s Guide for NonStop Systems429301-010
18-6
Cross Compilers
specifying the Guardian file to c89. Therefore, the Guardian file name
$VOL.SUBVOL.FILEC is specified to c89 as /G/VOL/SUBVOL/FILE.c.
Many products have shared run-time libraries (SRLs) for linking on the PC. If a
product does not have an SRL on the PC, perform final linking on a NonStop
server that does have the appropriate SRL.
Cross Compilers
Several cross compilers work with ETK or TDS:
Native C/C++ PC Cross Compiler
pTAL Cross Compiler
EpTAL Cross Compiler on page 18-7
COBOL85 Cross Compilers on page 18-7
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 ETK or 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.
ETK PC cross compiler produces TNS/R or TNS/E native object code that runs on
NonStop servers in the NonStop environment; TDS PC cross compiler produces
TNS/R native object code that runs on NonStop S-series servers in the NonStop
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 details, see:
The online help for ETK or TDS
The HTML help file for 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