MPE/iX Intrinsics Reference Manual (32650-90875)

Chapter 8 445
Command Definitions (HPMERGEEND-LOGSTATUS)
HPSWITCHTOCM
HPSWITCHTOCM
NM callable only.
Makes native mode (NM) to compatibility mode (CM) mixed-mode procedure calls possible.
Syntax
REC I32V I32V RECA
HPSWITCHTOCM(
proc,method,numparms,parms
,
I32V RECV I16 I32
fretlen,fretval,condcode,status
);
Parameters
proc
record (required)
Passes the target CM procedure identifier, which you can specify either by
a library to search and an ASCII name of up to 16 characters or by a CM
plabel (obtained from the HPLOADCMPROCEDURE or LOADPROC intrinsic).
The structure of the
proc
record varies, depending on how the target
procedure is identified. All variants have a
p_proc_id_type
field.
method
32-bit signed integer by value (required)
Passes a value indicating whether the CM target procedure runs in
normal, split-stack, or no-copy mode. Valid values are:
Value Meaning
0 Normal (non-split-stack)
1 Split-stack
2 No-copy
NOTE
If all parameters are within the CM stack or the length of the reference
parameters are less than the threshold, use the normal value. If the reference
parameters are outside of the CM stack (split-stack), wrap the reference
parameters in an extra data segment if the reference parameters are outside
of the CM stack (split-stack method). The no-copy method is the same as the
split-stack method, except that the threshold check is omitted.
numparms
32-bit signed integer by value (required)
The number of parameters you are passing to the CM target procedure.
parms
array of records (required)
Passes descriptions of each parameter being passed to the CM target
procedure. Each parameter is located and described by a record in this
array.