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

Method and system for executing instruction

A technology for executing instructions and instructions, which is applied in the computer field, can solve the problems of restricting the CPU register allocation algorithm to use instructions flexibly, instructions and system structure upgrade difficulties, etc., and achieve flexible configuration and application, increase the number of bits, and adjust the overall effect

Inactive Publication Date: 2009-12-30
SUNPLUS TECH CO LTD +1
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Therefore, although the side-effect instructions do not contain register information, which saves the coding space of the instructions, the execution of these instructions can modify the contents of the general-purpose registers, thereby limiting the effective use of registers and flexible use of instructions by the CPU register allocation algorithm. and architectural upgrades create difficulties

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
  • Method and system for executing instruction
  • Method and system for executing instruction
  • Method and system for executing instruction

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0032] This embodiment details the situation of configuring registers for instructions with implicit indexes in CPU instructions, that is, side-effect instructions.

[0033] The system for executing instructions in Embodiment 1 of the present invention includes control logic and index registers.

[0034] Among them, the control logic is used to pre-set the corresponding relationship between the index and the register code in the index register; read the side effect instruction from the instruction register, obtain the index corresponding to the side effect instruction, and then read the index in the corresponding relationship of the index register The corresponding register code is combined with the register read and write control obtained by analyzing the instruction, and the instruction is executed based on the register corresponding to the register code.

[0035] The index register is used to store the corresponding relationship between the index and the register code.

[...

Embodiment 2

[0062] This embodiment describes in detail the method and system for executing instructions when a fixed register is used as a global base address register for addressing instructions.

[0063] In this embodiment, the system for executing instructions includes control logic and index registers.

[0064] Among them, the control logic is used to pre-set the corresponding relationship between the index and the register code in the index register; read the instruction containing the index, obtain the index corresponding to the instruction, and read the index corresponding to the index in the corresponding relationship of the index register according to the index. Combined with the register read and write control obtained by analyzing the instruction, the instruction is executed based on the register corresponding to the register code.

[0065] The index register is used to store the corresponding relationship between the index and the register code.

[0066] image 3 It is a dat...

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 an instruction execution method, where the corresponding relationship between an index and a register code is preset in an index register. The method comprises the following steps of: reading instructions related to the index; acquiring the index corresponding to the instructions and reading the register code corresponding to the index from the corresponding relationship of the index register; and then executing the instructions based on the register corresponding to the register code. The invention also discloses an instruction execution system, which comprises control logic and the index register. The use of the invention realizes flexible configuration and application of CPU registers and overcomes restriction on register use caused by contents in fixed general registers corresponding to hidden correction in side-effect instruction execution so that adjustment of application binary interfaces (ABI) can be completely executed. In addition, the invention saves coding space of the instructions or expands addressing range of the instructions.

Description

technical field [0001] The invention relates to computer technology, in particular to a method and system for executing instructions. Background technique [0002] Most of the existing central processing unit (CPU, Central Processing Unit) instructions have instructions similar to pop / push (pop / push), frame pointer register access instructions (lwp! / swp!) and transfer and connect (bl, branch and link) and other such side-effect instructions. Although this type of instruction does not contain some register information when encoding, which saves the encoding space of the instruction, for the continuous execution of CPU instructions, the above instructions implicitly use the stack pointer register (sp) and frame pointer register (fp) respectively. And general-purpose registers such as the link register (lr), the execution results of the instructions will modify the contents of the registers implied by these instructions. For example, the implicit register corresponding to pop...

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/30
Inventor 陈立勤
Owner SUNPLUS TECH CO LTD
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