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-5
ONCE Specifies that the file containing this pragma will be
compiled only once during the compilation.
OPTFILE
Specifies an optimizer file, which contains a list of
functions that are to be optimized at the level specified
in the file.
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.
RVU
Sets the value of the _H_SERIES_RVU or
_G_SERIES_RVU feature-test macro.
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)
.
Table 13-1. Compiler Pragma Descriptions (page 5 of 7)
Pragma Purpose