C/C++ Programmer's Guide (G06.25+)
Compiler Pragmas
HP C/C++ Programmer’s Guide for NonStop Systems—429301-008
13-5
OPTIMIZE Controls the level to which the compiler optimizes the
object code.
OVERFLOW_TRAPS
Determines whether the native C and C++ compilers
generate code with arithmetic overflow traps.
PAGE
Causes a page eject in the compiler listing and prints a
page heading.
POOL_STRING_LITERALS
Specifies that within a compilation unit multiple
occurrences of the same string literal are to occupy the
same storage space.
POP
Directs the native compilers to restore the value of
certain pragmas that were stored earlier by a PUSH
pragma.
PUSH
Directs the compiler to save the value of certain
pragmas.
REFALIGNED
Specifies the default reference alignment for pointers
in native C and C++ programs.
REMARKS
Directs the native C and C++ compilers to issue
remarks.
RUNNABLE
Directs the Guardian compiler to generate an
executable object file instead of a linkable object file
for a single-module program.
RUNNAMED
Specifies that the object file runs as a named process.
SAVEABEND
Controls whether the system creates a save file if the
program terminates abnormally during execution.
SEARCH
Directs the Binder or linker to search a given object file
when attempting to resolve external references in a
program compiled with the RUNNABLE pragma.
SECTION
Gives a name to a section of a source file for use in an
#include directive.
SHARED
Directs the compiler to generate PIC (Position-
Independent Code) that can be shared, and to invoke
the ld or eld linker to create a PIC library file or a
dynamic-link library (DLL).
SQL
Enables the compiler to process subsequent SQL
statements.
SQLMEM
Provides the ability to alter the placement of SQL data
structures from extended memory to the user data
segment.
SRL
Specifies that a module is being compiled to link into a
native user library. This pragma is valid only for TNS/R
compilers.
Table 13-1. Compiler Pragma Descriptions (page 5 of 7)
Pragma Purpose