HP 3000 Manuals

Mixed-mode Summary and Example [ Switch Programming User's Guide ] MPE/iX 5.0 Documentation


Switch Programming User's Guide

Mixed-mode Summary and Example 

Figure 1.12 and Figure 1.13 summarize mixed-mode procedure calling as
provided by Switch:

[]
Figure 1.12. CM--> NM Switch Summary
[]
Figure 1.13. NM--> CM Switch Summary The following series of figures illustrates the migration of an existing COBOL II/V application to Native Mode. You can simply do a STORE/RESTORE to move the application. For even greater performance in Native Mode, you can recompile the source, taking advantage of the NM compilers. However, this application calls an SPL procedure that cannot be migrated to Native Mode. Therefore, you must use Switch to access this SPL procedure (if you do not want to rewrite it in an NM high-level language).
NOTE In the following figures, shading means that a module is no longer needed.
[]
Figure 1.14. Before Migration
[]
Figure 1.15. Migrating High-level Code to Native Mode
[]
Figure 1.16. Using Switch to Access SPL Procedure


MPE/iX 5.0 Documentation