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-91
SQLMEM
SQLMEM
The SQLMEM pragma provides the ability to alter the placement of SQL data structures
from extended memory to the user data segment.
The default setting is SQLMEM EXT.
USER
directs the compiler to place the SQL data structures in the user data segment,
which is the global area addressable in 16 bits. The SQLMEM USER pragma
improves the access time to the data structures but should be used judiciously,
because it can exhaust the user data segment.
EXT
directs the compiler to place the SQL data structures in the extended segment.
The pragma default settings are:
Usage Guidelines
The SQLMEM pragma can be entered on the compiler RUN command line or in the
source text. You can use the SQLMEM pragma as many times as necessary in the
program.
You can specify the SQLMEM pragma only if the XMEM and SQL pragmas have been
previously specified.
The native C and C++ compilers do not support this pragma. Native process
memory architecture does not require its use.
SQLMEM { USER | EXT }
SYSTYPE GUARDIAN SYSTYPE OSS
TNS C compiler Not set Not set
G-series TNS c89 utility Not set for C,
N.A. for C++
Not set for C,
N.A. for C++
TNS/R native C and C++ compilers N.A. N.A.
Native c89 utility N.A. N.A.
TNS/E native C and C++ compilers N.A. N.A.