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-3
Hardware and Software Requirements
Hardware and Software Requirements
ETK is supported on the Windows NT, Windows 2000, and Windows XP operating
systems.
For the latest PC and NonStop server hardware and software requirements, review
ETK online help.
Online Help
Online help is the only user documentation for ETK. The online help is composed of
these components:
Context-sensitive help for GUI objects
Help topics, such as “Setting Compiler Options”
Glossary of terms
Tutorial introducing the application
An HTML help file named “Using Command-Line Cross Compilers on Windows”
Usage Guidelines
The native C/C++ cross compiler produces object code that runs on NonStop S-series
or NonStop NS-series systems in either the Guardian or the OSS environment. The H-
series cross compilers package has the ability to produce TNS/R (G-series) or TNS/E
(H-series) object files.
Source code that is compilable by the native C and C++ compilers running on NonStop
S-series or NonStop NS-series systems is also compilable by the native PC cross
compiler, except for these differences:
The default target platform for the PC cross compiler depends on the copy of the
compiler used. For compilers installed in G-series RVU folders, the default is
NonStop S-series TNS/R servers. This compilers will not accept the -Wtarget
option.
For compilers installed in H-series RVU folders, the default is NonStop NS-series
TNS/E servers (-Wtarget=TNS/E). To produce programs that run on NonStop S-
series TNS/R servers, specify the -Wtarget=TNS/R flag to the c89 utility.
The default target environment for the PC cross compiler is the OSS environment.
To produce programs that run in the Guardian environment, specify the
-Wsystype=guardian flag to the c89 utility.
The native C PC cross compiler supports embedded SQL. When you enable SQL,
HP C passes the SQL options you choose to cfe so that embedded SQL
statements are compilable. Additional options are required on the PC as well.
To use the C/C++ cross compiler, the source files must reside in the PC
namespace. Because the cross compiler runs on the PC, the compiler cannot see
files located on NonStop server nodes. Therefore, you must transfer your source