HP 3000 Manuals

Impact on Users [ Switch Programming User's Guide ] MPE/iX 5.0 Documentation


Switch Programming User's Guide

Impact on Users 

Switch is used in the following areas:

 *  Phased migration of existing applications

 *  Recompilation into Native Mode of existing source code that contains
    calls to user-written CM SL procedures

 *  New NM applications that call user-written CM SL procedures

Members of the following groups will make use of Switch:

1.               Suppliers of application programs and subsystems who
                 want to migrate that software to Native Mode in a phased
                 approach

2.               Users who choose to recompile existing source code with
                 MPE XL-based NM compilers (HP Pascal/XL, HP FORTRAN
                 77/XL, COBOL II/XL) and whose original source contains
                 calls to user-written CM procedures that remain in CM
                 SLs and where rewriting these procedures in an NM
                 language is impractical or impossible

3.               Developers of new NM programs that require the services
                 of non-intrinsic CM procedures

4.               Users with performance-sensitive MPE V/E SL procedures
                 who want to recompile or rewrite those procedures in
                 Native Mode to get the best performance, but also want
                 CM programs to continue to call the procedures

5.               Suppliers of application software who need to provide
                 access to their routines from both modes

If you fall into the first category, you should do the following:

 *  Generate NM--> CM Switch calls (coded in-line or in Switch stubs) to
    non-intrinsic CM procedures

 *  Generate CM--> NM Switch calls (coded in-line or in Switch stubs)
    from CM procedures to NM procedures

 *  Incorporate into an MPE XL Executable Library any new NM procedures
    that CM procedures call via Switch

 *  Understand the performance factors that affect mixed-mode procedure
    calls

Members of the second category should do the following:

 *  Recompile application programs written in Pascal, FORTRAN, or COBOL
    with the appropriate NM compiler

 *  Generate Switch calls (either by means of in-line code or Switch
    stubs linked with the converted programs) to user-written CM
    procedures that remain in CM SLs

Those in the third category should do the following:

 *  Generate Switch calls (either via in-line code or Switch stubs linked
    with the new NM programs) to CM procedures

Those in the fourth category should do the following:

 *  Write NM procedures to replace performance-critical CM procedures and
    place them in an Executable Library

 *  Generate CM--> NM Switch calls (through in-line code or Switch stubs)
    to these NM procedures

Those in the final category should do the following:

 *  Generate the appropriate NM--> CM Switch calls (coded in-line or in
    Switch stubs)

 *  Generate the appropriate CM--> NM Switch calls (coded in-line or in
    Switch stubs)

 *  Incorporate into an MPE XL Executable Library any new NM procedures
    that CM procedures call via Switch

 *  Incorporate into a CM SL any new CM procedures that NM procedures
    call via Switch

 *  Understand the performance factors that affect mixed-mode procedure
    calls


MPE/iX 5.0 Documentation