Indirect skip prediction method and indirect skip prediction system for interpreter
An interpreter and transfer prediction technology, which is applied in the direction of memory system, instrument, program control design, etc., can solve the problems such as the large influence of interpreter performance, and achieve the effect of improving prediction accuracy and performance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0055]This embodiment provides a method for indirect jump prediction in an interpreter, using bytecode pointers as associated information, and guiding indirect jumps through software and hardware cooperation in the form of boot instructions. The method mainly includes:
[0056] Insert a bootstrap instruction in the interpreter, passing the bytecode pointer to the branch predictor;
[0057] The branch predictor identifies boot instructions and records bytecode pointers;
[0058] The branch predictor recognizes indirect jumps and makes predictions about the jump targets.
[0059] Specifically, the above-mentioned method provided by this embodiment is implemented as follows:
[0060] Modify the source code of the interpreter, insert a guide instruction as far away from the indirect jump as possible before the last indirect jump of the bytecode template, and pass the bytecode pointer to the branch predictor; when the indirect jump is executed , accessing the transfer target buff...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 