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-92
SRL
SRL
The SRL pragma specifies that a module is being compiled to link into a TNS/R native
user library. (A TNS/R native user library is a private shared run-time library (SRL).
The pragma default settings are:
Usage Guidelines
For the TNS/R native compilers, the SRL pragma can be entered only on the
compiler RUN command line. In the OSS environment, the pragma can be
specified with the -Wsrl flag of the c89 utility.
This pragma signifies that the code is being compiled to go into a SRL. This
prevents the compiler from using GP-relative addressing for global data. (Global
data can be either extern or static in scope.) This also causes the compiler to
put anonymous literals into the read-only data area.
Customers cannot use this pragma to build a public shared run-time library (SRL).
This pragma is not valid for the TNS/E native compilers.
SRLExportClassMembers
The SRLExportClassMembers pragma controls which members of a class are
exported from an SRL or a user library (a private shared run-time library). This pragma
is supported for TNS/R native C and C++ only.
srl_id
is the name of the SRL that exports the class.
exports
PROTECTED | PUBLIC | * | (item_list)
SRL
SYSTYPE GUARDIAN SYSTYPE OSS
TNS C compiler N.A. N.A.
G-series TNS c89 utility N.A. N.A.
TNS/R native C and C++ compilers Not set Not set
Native c89 utility Not set Not set
TNS/E native C and C++ compilers N.A. N.A.
SRLExportClassMembers srl_id exports