HP 3000 Manuals

Dual Programming Modes (new) [ Introduction to MPE XL for MPE V Programmers Migration Guide ] MPE/iX 5.0 Documentation


Introduction to MPE XL for MPE V Programmers Migration Guide

Dual Programming Modes 
(new) 

One major change from MPE V/E is that there are two programming
evironments in MPE XL: CM (Compatibility Mode) and NM (Native Mode).  CM
is provided for backward compatibility with MPE V/E and cross-mode
development.  That is, a program developed in MPE V/E can be run on MPE
XL, and a program can be developed in MPE XL CM to run on MPE V/E.

CM provides an environment familiar to the MPE V/E programmer.

NM is designed to take full advantage of HP-PA, the architecture of the
900 Series HP 3000.

The two programming environments can communicate and cooperate with each
other.  Their operations are transparent to the programmer and to the end
user.  You have several options in developing programs:

 *  You can develop and compile programs in MPE V/E and then migrate them
    to run on MPE XL CM.

 *  You can develop and run programs entirely in MPE XL CM. CM will
    probably be more familiar to you than NM.

 *  You can develop and run programs completely in MPE XL NM. NM will
    probably be more efficient than CM.

 *  Your programs can switch between CM and NM. For example, an NM
    program could call a CM procedure.

Because of the extended large address space available in MPE XL, paging
is more efficient than segmentation.  Therefore, segmentation is no
longer needed.

Since the operating system pipelines instructions, MPE XL NM compilers
can re-order commands to optimize efficiency.  The programmer can choose
optimization levels.

MPE V/E and MPE XL CM use the same processes for program development.
MPE XL NM uses different, but analogous, processes.  Table 2-1,
following, shows the correspondences.

          Table 2-1.  MPE Program Development 

---------------------------------------------------------------------------------------------
|                                             |                                             |
|             MPE CM and MPE V/E              |                  MPE XL NM                  |
|                                             |                                             |
---------------------------------------------------------------------------------------------
|                                             |                                             |
| Compiler invocation commands                | Compiler invocation commands                |
|                                             |                                             |
| PREP command                                | LINK command                                |
|                                             |                                             |
| Segmenter                                   | Linkeditor                                  |
|                                             |                                             |
| Relocatable library (RL)                    | NM relocatable library (RL)                 |
|                                             |                                             |
| Segmented library (SL)                      | Executable library (XL)                     |
|                                             |                                             |
| Relocatable binary module (RBM)             | Relocatable object module                   |
|                                             |                                             |
| User-defined segmented library file (USL)   | Object file (OBJ)                           |
|                                             |                                             |
| RUN command                                 | RUN command                                 |
|                                             |                                             |
---------------------------------------------------------------------------------------------

Some new commands for compiling, linking, and running specific languages
have been added; they are listed in Chapter 5, Using the Command
Interpreter.

For further information about program development on MPE V/E and MPE XL
CM, refer to MPE Segmenter (30000-90011).  For information about program
development on MPE XL, refer to HP Link Editor/XL Reference Manual 
(32650-90030).



MPE/iX 5.0 Documentation