Flexible Endian Adjustment for Cross Architecture Binary Translation

Tong Zhu,Bo Liu,Haibing Guan,Alei Liang
DOI: https://doi.org/10.1007/978-3-642-20367-1_25
2011-01-01
Abstract:Different architectures and/or ISA (Instruction Set Architecture) representations hold different data arranging formats in the memory. Therefore, the adjustment of byte packing order (endianness) is indispensable in cross-architecture binary translation if the source and target machines are of heterogeneous endianness, which may otherwise cause system failure. The issue is inconspicuous but may lead to significant performance bottleneck. This paper investigates the key aspects of endianness and finds several solutions to endian adjustment for cross-architecture binary translation. In particular, it considers the two principal methods of this field - byte swapping and address swizzling, and gives a comparison of them in our DBT (Dynamic Binary Translator) - CrossBit.
What problem does this paper attempt to address?