Intel iAPX 86 User Manual page 231

Table of Contents

Advertisement

iAPX 86,88 Family Utilities
Additional Information for iRMX 86 Users
Example 2: Building and Using Library Files
A library is a file that contains object modules. Libraries allow you to collect
commonly-used pieces of software into one file. The library file can be included in a
LINK86 invocation, and LINK86 will use the modules to resolve references.
You can add the output from a translator, LINK86, or LOC86 to a library. The
modules added may be relocatable or absolute; they can have unresolved references
or be completely linked.
Let's consider the following scenario-we have created six routines (SINE,
COSINE, TANGENT, COSECANT, SECANT, and COTANGENT). We want to
create a library file that will allow each routine to be linked to programs separately.
The first step necessary to create the library is to translate each routine separately. If
we were to put them in a single source module, the translator would translate them
into one module with six public symbols. We could add this module to a library, but
when we tried to link one of the routines into a program, all six would be included.
Once the routines are translated, LIB86 can be used to create a library file and add
modules. The LIST command is used to display the contents of the library and the
publics contained within it.
-'1':':1.'"
iRMX
86 8086
LIBRARIAN
Vx.y
*
*
*
:PROG:"LIBRARY/TRIG. LIB
SIN
SINE
COS
COSINE
:PROG:LIBRARY/TRIG.LIB
SIN
SINE
COS
COSINE
SEC
SECANT
CSC
COSECANT
COT
COTANGENT
TAN
TANGENT
*II:IIJi."
J-5

Advertisement

Table of Contents
loading

This manual is also suitable for:

Iapx 88

Table of Contents