摘要:
A system and method for processing virtual machine instructions which supports the software trap methodology. An application programming interface (API) prescribes additional functionality for software traps that remove the processing of recursive virtual machine instructions from virtual machine hardware and instead process recursive virtual machine instructions using software. The additional functionality includes the configuration of a context for processing recursive virtual machine instructions, which enables the virtual machine instructions to access CPU registers to retrieve and modify the values of variables as required, the release of the configured context when processing of recursive virtual machine instructions is completed, and the return of control to a virtual machine for processing non-recursive virtual machine instructions.
摘要:
The present invention relates to a device (10) for accelerating the interpretation of a program in interpreted language, said program comprising an intermediate code which can be executed by a virtual machine in the form of successive tasks, said device comprising routing means (13) able to extract a current intermediate code from a memory (11) in order to load it into storage means (16). When there is a request for a change of task, the routing means (13) are able to inhibit the extraction of the current intermediate code and to load into the storage means (16) a reserved intermediate code intended to effect a saving of a context of the virtual machine.