Unlock instant, AI-driven research and patent intelligence for your innovation.

Instruction address acquisition method and just-in-time compiler

A technology for obtaining methods and instruction addresses, which is applied in the computer field, can solve problems such as low code execution efficiency and interruption of code pipelines, and achieve the effect of improving code execution efficiency

Active Publication Date: 2017-08-25
LOONGSON TECH CORP
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, jump instructions will interrupt the code pipeline, resulting in inefficient code execution

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Instruction address acquisition method and just-in-time compiler
  • Instruction address acquisition method and just-in-time compiler
  • Instruction address acquisition method and just-in-time compiler

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0020] figure 1 It is a flow chart of Embodiment 1 of the instruction address acquisition method of the present invention, as figure 1 As shown, the execution subject of this embodiment is a just-in-time compiler, and the method of this embodiment may include:

[0021] S101. Determine a target instruction.

[0022] S102. Insert an instruction f...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

An embodiment of the present invention provides a method for obtaining an instruction address and a just-in-time compiler, wherein the method includes: determining a target instruction; inserting an instruction to load a preset address into a preset register before the target instruction; update to the address of the target instruction. When the program runs to the target instruction, the address of the target instruction has been stored in the preset register, so the subsequent code can directly access and use the address of the target instruction stored in the preset register. Since the purpose of storing the address of the target instruction to the preset register is realized by loading the instruction of the preset address constant to the preset register, the pipeline of code execution will not be interrupted, thus improving the efficiency of code execution.

Description

technical field [0001] The embodiment of the present invention relates to the field of computer technology, in particular to a method for obtaining an instruction address and a just-in-time compiler. Background technique [0002] In a just-in-time compiler, it is often necessary to obtain the target instruction address, so as to adjust the order of instructions during compilation or save the instruction address for subsequent code use. [0003] In the prior art, under the architecture of a microprocessor without interlocked piped stages (MIPS for short), the process of obtaining the address of the target instruction is: first determine the target instruction, and insert a jump empty function before the target instruction Instructions and delay slots, when executing the jump empty function instruction, the hardware will put the address of the target instruction in the No. 31 register, so that when running to the target instruction, the address of the target instruction is alr...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/38
Inventor 余银薛双柏王策彭飞
Owner LOONGSON TECH CORP