Paper
2 February 2023 Efficient condition code emulation for dynamic binary translation systems
Hongqing Zeng, Min Xie, Yong Dong, Zhenwei Wu, Haoming Lin
Author Affiliations +
Proceedings Volume 12462, Third International Symposium on Computer Engineering and Intelligent Communications (ISCEIC 2022); 124621P (2023) https://doi.org/10.1117/12.2660798
Event: International Symposium on Computer Engineering and Intelligent Communications (ISCEIC 2022), 2022, Xi'an, China
Abstract
Dynamic binary translation is widely used in cross-ISA (Instruction Set Architecture) binary migration. With the technology, computers can directly execute programs compiled in other platforms, which helps to reduce the cost of software migration between different architectures. Efficient condition code emulation is critical for achieving higher performance. However, existing binary translation systems typically have to emulate the guest flags register with memory variables to hide the ISA difference, which is less-efficient due to code expansion. In this paper, we propose a way to substitute guest conditional instructions with counterpart instructions from the host ISA to achieve higher performance in flags register emulation. We recognize flag-defining and flag-checking instructions respectively through scanning the guest code sequence and then reproduce the condition pattern in the dynamically generated host code with the corresponding flag-related instructions in the host ISA. The evaluation results show that our approach manages to reduce the dynamically generated host instructions by 7.53% and improve the performance by 14.3% on average.
© (2023) COPYRIGHT Society of Photo-Optical Instrumentation Engineers (SPIE). Downloading of the abstract is permitted for personal use only.
Hongqing Zeng, Min Xie, Yong Dong, Zhenwei Wu, and Haoming Lin "Efficient condition code emulation for dynamic binary translation systems", Proc. SPIE 12462, Third International Symposium on Computer Engineering and Intelligent Communications (ISCEIC 2022), 124621P (2 February 2023); https://doi.org/10.1117/12.2660798
Advertisement
Advertisement
RIGHTS & PERMISSIONS
Get copyright permission  Get copyright permission on Copyright Marketplace
KEYWORDS
Binary data

Computing systems

Software

RELATED CONTENT

Compressed data for the movie industry
Proceedings of SPIE (February 01 2014)
The impact of the data archiving file format on the...
Proceedings of SPIE (May 04 2010)
A Small Engineering Workbench On A Personal Computer
Proceedings of SPIE (October 19 1987)

Back to Top