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

Table Of Contents
Compiler Pragmas
HP C/C++ Programmer’s Guide for NonStop Systems429301-010
13-2
BUILD_NEUTRAL_LIBRARY Directs the TNS/E native compilers to create a C++
library using only those definitions common to the
VERSION2 and VERSION3 libraries and to set the
CPPNEUTRAL flag in the linkfile.
CALL_SHARED
Directs the native compilers to generate PIC (Position-
Independent Code) (shared code). This is the default
for the TNS/E native compilers.
CHECK
Controls the inclusion of run-time error-checking code
in the object file.
COLUMNS
Specifies the maximum logical line length of the source
file.
CPATHEQ
Specifies a file to be included before the compiler
begins compiling the source file.
CPPONLY
Causes only the C macro preprocessor to be run.
CSADDR
Directs the TNS C compiler to copy data objects from
the current code space into the stack space.
ENV
Specifies the intended run-time environment of an
object file.
ELD(arg)
Specifies arguments to be passed to the eld utility.
ERRORFILE
Directs errors and warnings to a specified file.
ERRORS
Directs the compiler to terminate compilation if it
detects more than a specified number of errors.
EXTENSIONS
Controls source code use of syntax extensions and
standard library extensions defined by HP.
EXTERN_DATA
Specifies whether external data references (object
declared extern) can use GP-relative addressing.
FIELDALIGN
Controls the component layout of structures for
compatibility between TNS and native or native mixed-
language structure layout.
FORCE_VTBL
Forces definition of virtual function table in cases
where the heuristic used by the native C++ compiler to
decide on definition of virtual function tables provides
no guidance.
FORCE_STATIC_TYPEINFO
Forces the typeinfo variables to be static to the file.
FORCE_STATIC_VTBL
Forces the virtual function tables that are created by
the compiler to be static to the file and not exported.
FUNCTION
Declares attributes of external routines.
HEADERS
Directs the native C and C++ compilers to print a list of
included header files.
Table 13-1. Compiler Pragma Descriptions (page 2 of 7)
Pragma Purpose