Dynamic detection and execution method of program loop code based on instruction queue

A technology of instruction queue and program loop, applied in the direction of machine execution devices, etc., can solve the problems of limited storage capacity of loop code length, unfavorable binary code compatibility, and large additional area overhead, so as to reduce repeated access and reduce storage overhead , Improving processing speed and efficiency

Active Publication Date: 2013-03-13
NAT UNIV OF DEFENSE TECH
View PDF3 Cites 27 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this method needs to add an additional storage unit, and the length of the loop code that can be detected is limited by the storage capacity, especially in a multi-threaded processor, because each thread requires an independent instruction storage unit, so the additional Larger area overhead and poor scalability
Moreover, this method cannot dynamically complete cycle detection, which is not conducive to the compatibility of binary code

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
  • Dynamic detection and execution method of program loop code based on instruction queue
  • Dynamic detection and execution method of program loop code based on instruction queue
  • Dynamic detection and execution method of program loop code based on instruction queue

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] Such as figure 2 As shown, the implementation steps of the program loop code dynamic detection and execution method based on the instruction queue in this embodiment are as follows:

[0035] 1) Fetch instructions from the instruction cache and save them in the instruction queue, transmit the instructions stored in the instruction queue to the functional components for execution, and obtain the jump direction and jump target distance when the executed instruction is a branch instruction and the execution result is a jump , if the jump direction is backward jump and the jump target distance is within the length of the instruction queue, it is predicted that the code between the currently executed branch instruction and the jump target address is the program loop code, and enters the next step;

[0036] 2) Take out the instruction corresponding to the program loop code from the instruction cache and fill it in the instruction queue;

[0037] 3) Bypass the instruction cac...

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 discloses a dynamic detection and execution method of a program loop code based on an instruction queue. The dynamic detection and execution method comprises the implementation steps as follows: 1) instructions are taken from an instruction cache and stored in the instruction queue; the instructions stored in the instruction queue are sent to functional components for execution; when the execution instructions branch instructions and execution results are skip, skip directions and skip object distances are acquired; if the skip is backward and the skip object distances are within the length of the instruction queue, the next step is executed; 2) instructions corresponding to the program loop code are taken out from the instruction cache and filled in the instruction queue; and 3) the instruction cache is bypast, the instructions are taken out from the instruction queue and executed, and the working state of the instruction cache is restored after all the instructions of the program loop code are executed. The method has the advantages that the execution efficiency is high, the processing property is good, the execution power consumption is low, the hardware cost is low, the nesting loop is supported, the compatibility is strong, and the extendibility is good.

Description

technical field [0001] The invention relates to the field of microprocessor code execution methods, in particular to a dynamic detection and execution method of program loop codes based on instruction queues. Background technique [0002] There are generally a large number of loop codes in computer programs, which are used to represent operations that need to be repeated many times. Execution of loop code is repetitive behavior in a microprocessor, especially for instruction fetches where each fetch is the same address and the same instruction. In modern microprocessors, in order to alleviate the speed difference between the processor and external storage access (that is, the "storage wall" problem), a high-speed cache (ie cache) is integrated on-chip to save the memory required by the processor when it is running. instructions and data. The capacity of the high-speed cache is smaller than that of the external memory, and the reading and writing speed is fast. The read an...

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/30
Inventor 张承义高军孙彩霞艾飞虎郭维孙曜王永文窦强倪晓强隋兵才陈微赵天磊王蕾黄立波
Owner NAT UNIV OF DEFENSE TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products