C/C++ Programmer's Guide (G06.25+)
Compiler Pragmas
HP C/C++ Programmer’s Guide for NonStop Systems—429301-008
13-2
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.
HEAP
The HEAP pragma specifies the maximum heap size of
a program compiled with the RUNNABLE pragma.
HIGHPIN
Specifies that the object file should be run at an
operating system high PIN (256 or greater) or at a low
PIN (0 through 254).
Table 13-1. Compiler Pragma Descriptions (page 2 of 7)
Pragma Purpose