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

Processing method for calling subprogram of microprocessor, and device for same

A technology of microprocessors and subroutines, applied in machine execution devices, concurrent instruction execution, etc., can solve problems such as poor flexibility, reduced processor performance, and instruction code redundancy, and achieve the effect of improving performance.

Inactive Publication Date: 2014-01-08
INST OF ACOUSTICS CHINESE ACAD OF SCI
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If Y>N delay_slot *X, the setting of X is too small compared to the current jump, which limits the development of delay slot parallelism, thus affecting the performance of multi-issue processors; if Ydelay_slot *X, then the setting of X is too large compared to the current jump, and Y-N needs to be filled delay_slot *X NOP instructions
Therefore, this method has poor flexibility, which will reduce the high performance of the processor or cause problems such as instruction code redundancy, waste of program storage space, instruction fetch bandwidth and power consumption.

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
  • Processing method for calling subprogram of microprocessor, and device for same
  • Processing method for calling subprogram of microprocessor, and device for same
  • Processing method for calling subprogram of microprocessor, and device for same

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] In the present invention, an unsigned immediate value is added to the code of subroutine calling jump instructions to calculate the total number of instructions in the delay slot, so that the number of execution packets in the delay slot can be flexibly allocated according to the scheduling situation of the delay slot instructions.

[0034] figure 1 The subroutine with immediate parameters in the prior art calls a jump-like instruction encoding structure. As shown in the figure, the instruction encoding bit length is L ist bit, the length of the instruction identification bit is a bit, the length of the parallel bit is b bit, and the remaining immediate number immn=L inst -a-b bits, used to calculate the transfer address. The immediate number immn represents the jump offset, and the calculation of the jump target address FPC is obtained by formula 4.

[0035] Formula 4: FPC=PC call_package_end +immn*(L inst / Step)

[0036]Correspondingly, while the subroutine call...

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 processing method for calling a subprogram of a microprocessor, and a device for the same. The method comprises the following steps of: obtaining a subprogram calling instruction which carries an unsigned immediate; extracting the unsigned immediate from the subprogram calling instruction; obtaining the total number of the instructions in a delay slot according to the unsigned immediate; and obtaining the return address of the subprogram calling instruction according to the total number of the instructions in the delay slot. The device comprises the following units: an obtaining unit for obtaining the subprogram calling instruction, an extraction unit for extracting the unsigned immediate from the subprogram calling instruction, and a calculation unit for obtaining the total number of the instructions in the delay slot according to the unsigned immediate and calculating the return address of the subprogram calling instruction according to the total number of the instructions in the delay slot. According to the method and the device for the same, performance of the processor in the aspect of processing the subprogram calling instruction is greatly improved.

Description

technical field [0001] The invention relates to a processor technology, in particular to a processing method and a device for calling a microprocessor subroutine. Background technique [0002] In various application programs, conditional jump instructions are frequently used instructions. Subroutine call classes and loops are one of the main fields of application of conditional jump instructions. The efficient design of conditional jump instructions is the key to efficient operation of the processor. The essential. [0003] In existing processors, a jump instruction is generally implemented by a J instruction or a B instruction. This type of jump instruction mainly realizes jumping a program to a specific address, wherein an immediate value or a register is used as an offset. [0004] The subroutine call type jump requires that it can jump to the subroutine entry address first, and then after the execution of the subroutine is completed, the execution sequence of the instru...

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 INST OF ACOUSTICS CHINESE ACAD OF SCI
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