Figure 3-3. Linking and Using User Libraries

:LINK operates on one or more relocatable object modules created b y a native compiler to perform the following tasks:

Search one or more relocatable libraries (RLs) and resolv e references to them in an y of the relocatable object modules being link ed.

Resolve references among the relocatable object modules.

Merge all the relocatable object modules associated with one program to create an executable program ￿le.

If you use language commands that compile, link, and execute in one command (for example, :PASXLGO and :COB85XLG ) or compile and link in one command (for example, :PASXLLK and :FTNXLLK ), then linking is automatic. When y ou compile separately, you can use the MPE/iX command :LINK to produce an executable program ￿le. Use this method when y ou want

to use values di￿erent from standard Link Editor defaults. :LINK invokes Link Editor and passes the speci￿ed parameters to it. (An analogous LINK command exists in Link Editor; the MPE/iX command :LINK simply provides a short cut.)

3-8 Program Development