Introduction to eld
eld Manual—527255-009
1-11
Example of Use
Here’s the creation of the object file called
mystro
.
run $data01.toolsy02.ccomp /in mystrngc /mystro;suppress
TNS/E C - T0549H01 - 30AUG2004 (Oct 25 2004 14:47:23)
(C)2004 Hewlett Packard Development Company, L.P.
0 remarks were issued during compilation.
0 warnings were issued during compilation.
0 errors were detected during compilation.
Object file: mystro
Compiler statistics
phase CPU seconds elapsed time file name
CCOMP \SPEEDY.$DATA01.TOOLSY02.CCOMP
CCOMBE 0.2 00:00:06 \SPEEDY.$DATA01.TOOLSY02.CCOMBE
total 0.2 00:00:06
All processes executed in CPU 04 (NSR-Y)
Swap volume: \SPEEDY.$DATA01
Build the DLL and the Program
First we build the DLL, then the main executable file called
revstr.
It has to be in that
order because the main executable could not refer to a DLL that did not yet exist. (If
the linker’s
-allow_missing_libs
option is specified, the main executable could be
linked befoe the DLL is linked.)
Note that the
-lib
option references the DLL called
mystrdll.
Note the -
export_all
option. We could also individually reference the items to be exported, as follows:
-export StrRev
Note the
-shared
option sent to
eld
. This creates the DLL. The
-dll
option can be
used to do the same task, and is probably more descriptive of what we want to
achieve. Either option can be used.
Summary of Contents for eld
Page 4: ......
Page 8: ...Contents eld Manual 527255 009 iv ...
Page 12: ...What s New in This Manual eld Manual 527255 009 viii Changes to the 527255 005 Manual ...
Page 34: ...Introduction to eld eld Manual 527255 009 1 14 Example of Use ...
Page 54: ...eld Input and Output eld Manual 527255 009 2 20 Using Archives ...
Page 98: ...Other eld Processing eld Manual 527255 009 4 20 Merging Source RTDUs ...
Page 242: ...Output Listings and Error Handling eld Manual 527255 009 6 132 Glossary of Errors ...