HP 3000 Manuals

Calling Compiled Subunits From the Interpreter [ HP Business BASIC/XL Reference Manual ] MPE/iX 5.0 Documentation


HP Business BASIC/XL Reference Manual

Calling Compiled Subunits From the Interpreter 

An interpreted program can call a compiled subunit under the following
conditions:

 *  The compiled subunit and any subunits that it calls must be in an
    executable library.  Use the link editor to add the relocatable
    object file to an executable library.  See the HPLink Editor/XL 
    Reference Manual for details.  The interpreter can be run using the
    XL parameter to specify which executable library to search.

 *  The interpreted program unit must contain a definition of the
    compiled subunit.  The subunit uses an EXTERNAL, INTRINSIC or ANYPARM
    statement, or it can be implicitly declared in an ANYPARM, underbar,
    or call.

An external subunit call is syntactically identical to an internal
subunit call.  The CALL statement calls an external procedure, and an
external multi-line function call is legal wherever an internal
multi-line function is legal.

The ON ERROR CALL, ON HALT CALL, and ON END CALL statements cannot
reference external subunits.

An external subunit cannot call an interpreted subunit.



MPE/iX 5.0 Documentation