Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Jump source list processing method, jump source list processing device and compiler

A technology of jump source list and processing method, applied in the fields of jump source list processing method, device and compiler, can solve the problems of low instruction execution efficiency and large memory overhead, so as to reduce the number of traversals, avoid memory overhead, and improve The effect of execution efficiency

Active Publication Date: 2014-09-10
LOONGSON TECH CORP
View PDF4 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, the existing technology has the problems of large memory overhead and low execution efficiency for unified modification of instructions

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
  • Jump source list processing method, jump source list processing device and compiler
  • Jump source list processing method, jump source list processing device and compiler
  • Jump source list processing method, jump source list processing device and compiler

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] figure 1 The flow chart of Embodiment 1 of the jump source list processing method provided by the present invention is as follows: figure 1 As shown, the jump source list processing method in this embodiment includes:

[0025] S101. Obtain an identifier of a jump target, where the jump target corresponds to n jump instructions, where n is a positive integer greater than or equal to 2.

[0026] For example, if the jump target corresponds to three instructions such as a branch jump instruction, a short jump instruction and a long jump instruction, the identification of the jump target is obtained first, wherein the identification of the jump target is used as a pointer, by giving Flag assignment makes flags point to delay slots after each of the n jump instructions.

[0027] S102. Use the identifier as a pointer to point to the delay slot after each jump instruction in the n jump instructions, and store the address information of the corresponding jump instruction in th...

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

The invention provides a jump source list processing method, a jump source list processing device and a compiler. The jump source list processing method includes that identify of a jump target which corresponds to n jump instructions is acquired, wherein the n is a positive integer larger than or equal to 2; the identify is taken as a pointer pointing to a delay slot behind each jump instruction in the n jump instructions, and the corresponding jump instructions are stored in address information in a code buffer area when the pointer points to the delay slots. The jump instruction address information in a jump source list is stored in the delay slots, so that memory overhead caused by the fact that a special space is arranged in a memory to store the jump instruction address information of the jump source list in a list structure mode can be avoided; after the address of the jump target is determined, modification of the target address of the n jump instructions can be completed in the code buffer area through one-time traversal; compared with the prior art, the jump source list processing method has the advantages that the number of times of traversal in modifying the n jump instructions according to the address of the jump target can be reduced, and execution efficiency in improving the n instructions can be improved.

Description

technical field [0001] The invention relates to computer technology, in particular to a jump source list processing method, device and compiler. Background technique [0002] In the implementation process of the compiler, it is necessary to transmit the code of the jump instruction to the instruction buffer (buffer) sequence. Since the address of the jump target cannot be obtained at present, the exact code of the jump instruction cannot be determined. Therefore, the jump target address can only be determined after the compilation process is over and all instruction locations are determined, and for jump instructions with consistent jump targets such as branch jumps, absolute jumps, and register jumps, it needs to be based on the The addresses of these jump instructions are used to generate a jump source list, so as to realize that after the jump target address is determined, these instructions are uniformly modified according to the jump source list. [0003] In the prior ...

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 Applications(China)
IPC IPC(8): G06F9/54
Inventor 黄文君薛双百汪清王策
Owner LOONGSON TECH CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products