Remote Procedure Calls

Two virtual machines can be linked together and call each other's functions. In addition, the virtual machine itself provides functions (as opposed to opcodes) that an assembly program can call. Calls of either type are referred to as remote procedure calls. Using these functions is similar to a normal function call, as far as setting up the stack goes. However, RPCs return two values. The first value is whether or not the remote call succeeded. A remote can fail for any number of reasons:

The actual return value of the function is pushed onto the top of the stack.



Mason Smith 2008-06-11