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

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 files from the server to the PC using file transfer
protocol (FTP).
When your source files are on the PC, they can be distributed anywhere in the PC namespace.
Likewise, any files that are output from the PC cross compilers can be distributed anywhere
in the PC namespace.
PC source files with #include path names use the backslash (\) separator. These path names
are correctly interpreted by the PC cross compilers. However, PC path names cannot be used
by the native compilers that run on NonStop servers.
The PC cross compiler interprets the slash character (\) in #include path names as a
backslash (\). Therefore, OSS source files with directory names can map automatically to the
PC namespace.
The PC cross compiler handles source-file name suffixes in the same manner as c89 and c99.
Source-file names must be identified with the .suffix format just as are OSS file names.
Many products have shared run-time libraries (SRLs) or dynamic-link libraries (DLLs) for linking
on the PC. If a product does not have an SRL or DLL on the PC, perform final linking on a
NonStop server that does have the appropriate library file.
TDS
TDS is an integrated development environment that enables you to use a PC to build applications
that will run on TNS/R systems. The TNS/R native C and C++ PC cross compiler has been integrated
with related tools into a development environment that targets both Guardian and OSS.
TDS provides an easy-to-use graphical user interface (GUI) that uses the Borland Integrated
Development Environment. TDS has commands and options that enable you to compile and link
your applications on the PC and then run them on a NonStop G-series platform. After compiling
and linking, you can select the Tandem FTP tool to send your object file directly to the HP NonStop
platform and change it to the correct Guardian executable file code.
Release 2 of TDS supports Borland C++ version 5.02. The HP extensions to the Borland development
environment provide a choice of compilers, editors, and debuggers, as listed in the following
paragraphs.
TDS is an independent product delivered on a separate compact disc and is not available on the
HP SUT.
Hardware and Software Requirements
The Tandem Development System (TDS) is supported on the Windows 98, Windows NT, and
Windows 2000 operating systems.
For the latest PC and NonStop server hardware and software requirements, review the online help.
Online Help
Online help is the only user documentation for TDS. 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
314 Using the Native C/C++ Cross Compiler on the PC