You can obtain t wo types of output from a compiler, aside from the compiler listing of errors: Source code translation of the output to a relocatable object module.

Source listing, with v arious map and table options.

Compiler Control

If you wish only to compile a program, without linking and running it, y ou can use the

"compile only " command for the appropriate language. These commands allow y ou to provide several optional parameters that specify the name of the text￿le (source ￿le), object￿le (relocatable object module), and list￿le. The text ￿le con tains the source code for the program. The relocatable object module will con tain the output from the compile. The list￿le, which is usually on a terminal or prin ter, will re￿ect the progress of the compile.

When source code has been successfully compiled and y ou have an error-free relocatable object module, y ou are ready to link a program ￿le from information in one or more relocatable object modules. A softw are product called Link Editor performs this operation.

Linking a Program

Many executable programs are originally generated from more than one source ￿le. On MPE/iX, each source ￿le is compiled separately to produce a relocatable object module.

The linking phase of program dev elopment makes a relocatable object ￿le in to an executable program ￿le. It can also bring together separately compiled relocatable object modules in to an executable program ￿le.

Use the MPE/iX command :LINK to automatically access Link Editor to create an executable program ￿le from one or more relocatable object modules.

Note

Link Editor on MPE/iX replaces Segmen ter on MPE V/E. You can still use

 

Segmenter in MPE/iX Compatibilit y Mode. For detailed information, refer

 

to MPE Segmenter Reference Manual (30000-90011). For an explanation of

 

the di￿erences between Link Editor and Segmen ter, refer to Link Editor/XL

 

Reference Manual (32650-90030). :LINKis the MPE/iX coun terpart to :PREP

 

on MPE V/E systems. Ho wever, it operates di￿eren tly and has di￿eren t

 

options. For an explanation of the di￿erences bet ween :LINK and :PREP , refer

 

to Link Editor/XL Reference Manual (32650-90030). Figure 3-3 sho ws the role

 

of :LINK and Link Editor in MPE/iX.

 

 

Program Development 3-7