Array processing method and device in virtual machine, electronic equipment and readable storage medium
By obtaining the boundary address of the virtual machine array and reassembling the memory access instructions, the problem of host machine performance degradation caused by array out-of-bounds checks in the virtual machine is solved, and more efficient array element memory access is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- LOONGSON TECH CORP
- Filing Date
- 2022-07-12
- Publication Date
- 2026-05-29
AI Technical Summary
In existing technologies, virtual machines need to insert multiple jump instructions, comparison instructions, and branch instructions when performing array out-of-bounds checks, which leads to a decrease in the performance of the host program.
By obtaining the boundary address of the array to be processed, writing it into the range register, and reassembling it into a second memory access instruction, the host machine performs array out-of-bounds detection and load or store operations based on this instruction, avoiding the insertion of multiple jump, compare, and branch instructions.
This reduces the number of instructions executed by the host machine, avoids instruction jumps, and improves program performance.
Smart Images

Figure CN115309499B_ABST