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-19
ELD(arg)
ELD(arg)
The ELD pragma specifies arguments to be passed to the eld utility, the TNS/E linker
for PIC (Position-Independent Code).
arg
is any argument accepted by the eld utility.
For more details on valid syntax and semantics, see the eld Manual.
The pragma default settings are:
Usage Guidelines
The ELD pragma is a command-line directive and must not be entered in the
source text.
On Guardian environment, the ELD pragma must be entered on the compiler RUN
command line for TNS/E native C/C++. On OSS environment, specify the ELD
pragma by using the
-Weld=arg option with the c89 utility.
The ELD pragma does not actually invoke the eld linker. To invoke eld, you must
include other pragmas such as RUNNABLE
, SHARED or LINKFILE. If eld is not
invoked, this pragma is ignored.
This TNS/E native C command example shows the ELD pragma. Note that if you
specify SHARED, no need to include RUNNABLE:
ccomp /in prog1/ prog1o; runnable, eld(-set floattype
neutral)
ELD(arg)
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 N.A. N.A.
Native c89 utility Not set Not set
TNS/E native C and C++ compilers Not set Not set