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

Return address optimisation for a dynamic code translator

a dynamic code translator and return address technology, applied in the field of computer system and emulation, can solve the problems of taking a significant amount of time and thus cost to port an older software application to a new platform, affecting the development efficiency of the application, and not necessarily enabling programmers to understand the application's architecture and logi

Inactive Publication Date: 2013-01-24
IBM CORP
View PDF5 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Benefits of technology

The present invention is about a method for optimizing return address translation in a dynamic code translator. It involves compiling a code for a first machine and planting it with compatibility information. The code includes a function call and a trampoline instruction set with branch instructions that return a true return address conditional on an isostate. The instructions also write an address of the trampoline instruction set to a register and save an existing return address from a register in a translator return address stack. The invention allows for efficient translation of function calls between different machines with different hardware environments.

Problems solved by technology

It takes a significant amount of time (and thus cost) to port an older software application to a new platform.
In many cases, the cost to port an application may be as much as 40% of the original development cost.
If the application was obtained from an outside vendor then, even if the source is available, the understanding of the application's architecture and logic are not necessarily available to the programmers who will be porting the application.
If the source for the original application was lost, then porting is not even possible.
Reverse engineering or starting development from scratch are also expensive alternatives.

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
  • Return address optimisation for a dynamic code translator
  • Return address optimisation for a dynamic code translator
  • Return address optimisation for a dynamic code translator

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

(s)

[0015]Dynamic code translation, also referred to as dynamic binary translation (DBT), is a form of binary translation which takes place in real-time, that is, as an application is executing on the target machine. DBT translates a basic block and caches the resulting sequence. Code is only translated as it is discovered and when possible, and branch instructions are made to point to already translated and saved code (memoization). DBT differs from simple emulation by eliminating the emulator's main read-decode-execute loop (a major performance bottleneck), but incurs large overhead during translation time. This overhead is hopefully amortized as translated code sequences are executed multiple times during continued program execution. QuickTransit was a cross-platform virtualization program developed by Transitive Corp. which utilized DBT. It allowed software compiled for one specific processor and operating system combination to be executed on a different system architecture witho...

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

A dynamic code translator with isoblocking uses a return trampoline having branch instructions conditioned on different isostates to optimize return address translation, by allowing the hardware to predict that the address of a future return will be the address of trampoline. An IP relative call is inserted into translated code to write the trampoline address to a target link register and a target return address stack used by the native machine to predict return addresses. If a computed subject return address matches a subject return address register value, the current isostate of the isoblock is written to an isostate register. The isostate value in the isostate register is then used to select the branch instruction in the trampoline for the true subject return address. Sufficient code area in the trampoline instruction set can be reserved for a number of compare / branch pairs which is equal to the number of available isostates.

Description

BACKGROUND OF THE INVENTION[0001]1. Field of the Invention[0002]The present invention generally relates to computer systems and emulation, and more particularly to dynamic binary translators which use isoblocks to cache translated code.[0003]2. Description of the Related Art[0004]It is often useful to run a computer program designed for one computer system having a particular processor architecture and operating system (OS) on another computer system having a different processor architecture and / or OS. For example, it is desirable to allow new computer systems to run legacy programs without having to redesign those programs. It takes a significant amount of time (and thus cost) to port an older software application to a new platform. If there is a change in the hardware instruction set, then the application must be recompiled. If there is a change in the OS, then applications must be rewritten to use the new OS calls. Significant changes could be required in the source code just to ...

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(United States)
IPC IPC(8): G06F9/30
CPCG06F9/322G06F9/3806G06F9/4552G06F9/443G06F9/30054G06F9/455G06F9/30061
Inventor LOVETT, WILLIAM O.BROWN, ALEXANDER B.
Owner IBM 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