Realizing method of register window switching in binary translation

A technology for window switching and implementation methods, applied in memory systems, instruments, program control design, etc., can solve the problems of not substantially improving efficiency, low efficiency, and increasing the complexity of the front end of the translator, reducing operation and execution efficiency. The effect of high, memory-reducing operations

Inactive Publication Date: 2010-01-06
SHANGHAI JIAO TONG UNIV
View PDF0 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] It can be seen that the first method requires many operations of copying between registers and memory access for each register window switching instruction, which is very inefficient; This method improves the efficiency a little, but it needs to analyze the data flow graph, which increases the complexity of the front end of the translat

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
  • Realizing method of register window switching in binary translation

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] In order to better understand the technical solutions of the present invention, further description will be given below in conjunction with the accompanying drawings and through specific embodiments. The following examples are not intended to limit the present invention.

[0022] SPARC is a RISC microprocessor jointly developed by SUN and TI. SPARC processors contain two types of registers: general-purpose registers and control / status registers. General-purpose registers are divided into global registers and register windows. At any one time, an instruction can access 8 globals registers and a window of 24 registers in the integer register unit. A register window consists of 8 in registers, 8 local registers and 8 out registers, among which the 8 out registers have the same address as the 8 in registers of the next adjacent window. The SAVE and RESTORE commands cause window switching.

[0023] CrossBit is a dynamic binary translation system, which can provide executi...

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 relates to a realizing method of register window switching technology in dynamic binary translation, belonging to the technical field of computers. The realizing method comprises the following steps: corresponding to all register windows on a source platform by using a section of continuous memory space; storing the address of the current register window in the corresponding simulated memory space on the source platform using a virtual register and simulating a control/state register and a global register by using the other fixed memory space, wherein the control/state register and the global register are irrelevant to the register windows; determining the positions of the registers of the source platform in the simulated memory in a second-level addressing mode; and dynamically adjusting the value of the virtual register when each register window switching instruction is translated at the front end of a translator. The invention uses the second-level addressing mode to enable the value of the virtual register to be adjusted only when each register window switching instruction is translated into an intermediate instruction, thereby effectively reducing memory access frequency and further improving the execution efficiency of object codes after translation.

Description

technical field [0001] The invention relates to a method for switching register windows in the technical field of computers, in particular to a method for realizing register window switching in binary translation. Background technique [0002] Dynamic binary translation is the most widely used method in virtual machine technology. It is an effective means to solve legacy code and improve the adaptability of software platforms. It can dynamically convert executable programs without source code. The binary program on the source machine platform and make it run on other target machine platforms. For the dynamic binary translator itself, execution performance is a very important measure. The so-called execution performance means that, taking the efficiency of the source program running under the original architecture as a reference, the lower the efficiency loss of the source program in the operating environment provided by the dynamic binary translator, the better the executio...

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
IPC IPC(8): G06F9/45
Inventor 管海兵梁阿磊左保京章一超孙廷韬
Owner SHANGHAI JIAO TONG UNIV
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