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

Byte order adjustment method in binary translation

An adjustment method and byte order technology, applied in the computer field, can solve the problems of system performance restriction, high overhead, huge ByteSwapping overhead, etc., and achieve the effect of good performance improvement.

Inactive Publication Date: 2010-06-30
SHANGHAI JIAO TONG UNIV
View PDF1 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, although it is a hardware implementation, the above technology still needs to move the internal byte order of the data, and the logic unit is also relatively cumbersome, so the overhead of this movement is very large
For those processors without hardware architecture support, the overhead of Byte Swapping is even greater, which has a greater constraint on system performance

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0022] This embodiment is used to adjust the byte order of the LD instruction, including the following steps:

[0023] In the first step, the execution engine of the dynamic binary translation system loads the executable image of the source program, adjusts the byte order of the content of each program segment, and adjusts the number of loaded parameters, parameter content and environment variables.

[0024] Described dynamic binary translation system is the UQDBT system of the University of Queensland, or the strata system of the University of Virginia, or the CrossBit system of Shanghai Jiao Tong University, wherein: the UQDBT system is referred to and published in "Proceedingsof the ACM SIGPLAN Workshop on Dynamic and Adaptive Compilation and Optimization (Affiliated Conference on Dynamic and Adaptive Compilation and Optimization organized by SIGPALN of the American Association for Computing Machinery) "Machine-Adaptable Dynamic Binary Translation (Dynamic Binary Translation...

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 byte order adjustment method in binary translation, belonging to the technical field of computers, which comprises the following steps: loading a source program executable image by the execution engine of a dynamic binary translation system, adjusting the byte orders of the contents of each program segment, and synchronously adjusting the number of loaded parameters, contents of the parameters and environmental variables; modifying the effective address of an intermediate command representing internal memory access so that the expression of the modified effective address accords with the semantic of the internal memory access of a source program so as to load or store correct data in an internal memory; translating the source program command into the intermediate command by a front decoder, adding the generated intermediate command to a constructed intermediate command basic block until the occurrence of direct skip or system call, finishing the construction of the current basic block, and sending the basic block to a back end for executing. The invention avoids the flitting of byte orders of internal memory data by using the method for modifying internal memory address, has high efficiency, correctness and commonality in the field of binary translation.

Description

technical field [0001] The invention relates to a method in the field of computer technology, in particular to a byte order adjustment method in binary translation. Background technique [0002] Dynamic binary translation technology is an important part of the process-level virtual machine field. It dynamically translates the binary code corresponding to the source machine platform into binary code that can run on the target machine platform. It is the solution to legacy code and improve the adaptability of software platforms An effective method provides a way for software transplantation and system performance improvement. [0003] Endianness is a basic attribute of computer architecture, and it is a method for judging the high and low bits of multi-byte data in memory when the computer processes data. There are two types of byte order: big endian (Big Endian) and little endian (Little Endian). Big-Endian means that the high-order bytes are arranged at the low address end...

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): G06F7/76G06F9/30
Inventor 管海兵梁阿磊朱彤刘博杨辉兵
Owner SHANGHAI JIAO TONG UNIV
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