摘要:
A preprocessor is functionally inserted between a memory and a processor core. The preprocessor fetches virtual machine instructions, like Java instructions, from the memory and from them it generates native instructions which are supplied to the processor core. In response to a special virtual instruction the preprocessor supplies a native jump to subroutine to the processor core, monitors when the processor core returns from that subroutine and then resumes supplying generated native instructions. The invention also provides for a processor which has a special instruction which calls a subroutine and causes the processor to convert a call context for virtual machine instructions to a call context for a high level language subroutine before making the call.
摘要:
A processing device comprises an instruction memory 120 for storing virtual machine instructions, such as Java byte codes. A processor 112 of the processing device comprises a predetermined micro controller core 114 for executing native instructions from a predetermined set of micro controller specific instructions. The native instructions differ from the virtual machine instructions. The processor 112 is of a type which may request re-feeding of a plurality of native instructions. For instance, the processor 112 may have a pipeline and/or instruction cache which after an interrupt need to be re-filled. The processing device comprises a pre-processor 130 with a converter 132 for converting at least one virtual machine instruction, fetched from the instruction memory, into at least one native instruction. Feeding means 136 of the pre-processor 130 feed native instructions to the micro controller core 114 and re-feed native instructions in response to the processor requesting re-feeding of a number of native instructions. The processing device is a stack oriented machine, and at least the top elements of the stack are mapped onto registers of the processor. The position of the top of the memory stack is preferably indicated using a register of the converter.
摘要:
A preprocessor is functionally inserted between a memory and a processor core. The preprocessor fetches virtual machine instructions, like Java instructions, from the memory and from them it generates native instructions which are supplied to the processor core. In response to a special virtual instruction the preprocessor supplies a native jump to subroutine to the processor core, monitors when the processor core returns from that subroutine and then resumes supplying generated native instructions. The invention also provides for a processor which has a special instruction which calls a subroutine and causes the processor to convert a call context for virtual machine instructions to a call context for a high level language subroutine before making the call.
摘要:
A processing device comprises an instruction memory 120 for storing virtual machine instructions, such as Java byte codes. A processor 112 of the processing device comprises a predetermined micro controller core 114 for executing native instructions from a predetermined set of micro controller specific instructions. The native instructions differ from the virtual machine instructions. The processor 112 is of a type which may request re-feeding of a plurality of native instructions. For instance, the processor 112 may have a pipeline and/or instruction cache which after an interrupt need to be re-filled. The processing device comprises a pre-processor 130 with a converter 132 for converting at least one virtual machine instruction, fetched from the instruction memory, into at least one native instruction. Feeding means 136 of the pre-processor 130 feed native instructions to the micro controller core 114 and re-feed native instructions in response to the processor requesting re-feeding of a number of native instructions. The processing device is a stack oriented machine, and at least the top elements of the stack are mapped onto registers of the processor. The position of the top of the memory stack is preferably indicated using a register of the converter.
摘要:
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.