Patent ID: 8276128

Claim:
A method for performing dynamic binary translation in a Master Control Program (MCP) environment on a native processor, the MCP environment comprising a central processor module (CPM), a task control unit (TCU), and a code translation unit (CTU) for implementing the dynamic binary translation, the method comprising: the CPM reading E-Mode code from a memory prior to execution; the CPM generating and sending a first message to the CTU, the first message comprising a reference to the E-Mode code to be translated and a translation complete event to be caused when translation of the E-Mode code is completed; the CPM generating and sending a second message to the TCU, the second message configured to cause a first stack to wait for the translation complete event, the first stack comprising at least a first portion of the E-Mode code to be translated; based on the second message, the TCU instructing the CPM to move to a second stack comprising at least a second portion of the E-Mode code to be translated; based on the first message, the CTU translating the first portion of the E-Mode code to native code; the CTU generating and sending a third message to the TCU, the third message configured to cause the translation complete event; based on the third message, the TCU causing the translation complete event; the TCU preparing the second stack and scheduling the CPM to the second stack; and the CPM executing the native code.