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

Provides source-level debugging for servers executing in NonStop environment; provides
additional application navigation features that allow a higher level of abstraction
Supports both TNS and native machine architectures and compilers (that is, C, C++, COBOL85,
NMCOBOL, ECOBOL, EpTAL, TAL, pTAL, D-series Pascal, and FORTRAN), in the Guardian
and OSS executing environments
Is available also as a stand-alone product
For more details about enabling and using Visual Inspect, see the Visual Inspect online help. See
also the descriptions of pragmas INSPECT (page 209) and SYMBOLS (page 249).
TNS/R Native Object File Tool (noft Utility)
The native object file tool (the noft utility) reads and displays information about TNS/R native
object files. You can use noft to:
determine the optimization level of procedures
display object code with corresponding source code
list object file attributes
list unresolved references
noft runs in the Guardian and OSS environments. The noft syntax and capabilities are nearly
identical in each environment. For more details, see the noft Manual.
Native object files are in Executable and Linking Format (ELF), a standard format used for object
files, with HP extensions. For more details on native object files, see the nld Manual and ld Manual.
A native object file is either a linkfile or a loadfile, but not both. The native compilers produce only
linkfiles, while the TNS/R native linker utility can produce either linkfiles or loadfiles.
Linkfiles can be used again as input to TNS/R native linker. Loadfiles can be used as input to
TNS/R native linker only for modifying loadfile attributes. Both linkfiles and loadfiles can be used
as noft input.
Can Be ExecutedCan Be Linked to Produce a Loadfile
NoYesLinkfiles
YesNoLoadfiles
NonStop SQL/MP Compiler and NonStop SQL/MX Compiler
The NonStop SQL/MP compiler processes embedded SQL statements from C source programs
and generates the correct NonStop SQL/MP database calls. For more details see the SQL/MP
Programming Manual for C.
The NonStop SQL/MX compiler, available on the OSS platform, processes embedded SQL
statements from TNS/R native C or C++ source programs and generates the correct NonStop
SQL/MX database calls. For more details see the SQL/MX Programming Manual for C and COBOL.
TNS/R Native C and C++ Migration Tool
The native C and C++ migration tool, NMCMT, scans source files and produces a diagnostic
listing. The listing identifies most C and C++ language source code changes required to migrate
from TNS C (D20 or later product versions) to native C or C++.
The native mode migration tool is available in both the Guardian and OSS environments, and it
is integrated into ETK on the PC.
36 Introduction to HP C and C++ for NonStop Systems