RISCing It All: Accelerating Binary Translation Using Software-Only Validated Flag Speculation
IEEE Transactions on Mobile Computing · 2026-12 · 25 (12) · 22457-22473
DOI: 10.1109/tmc.2026.3718184 ↗Kurz gefasst
Fachartikel in der Zeitschrift IEEE Transactions on Mobile Computing, 2026-12. Verfasst von James Yen und 11 weiteren Autor:innen. Die Arbeit nennt 28 Literaturangaben. Gefördert von: Ministry of Industry and Information Technology 2024 Cloud Operating System Project, National NSF of China, National Laboratory Special Program of the China.
Abstract (Originalsprache)
ARM processors are expanding beyond mobile devices into laptops, desktops, and servers, yet the x86 software ecosystem remains a barrier to adoption. Dynamic binary translation provides a practical compatibility path, but performance is often limited by condition code handling. x86 implicitly updates EFLAGS after most arithmetic operations, whereas ARM updates condition codes only on request and lacks hardware support for all x86 flags. Conservative translation therefore materializes flags in software, inflating instruction counts and placing flag extraction on critical paths. We present Cascade, a software-only x86-to-ARM64 binary translation framework that substantially reduces EFLAGS overhead through three complementary techniques. First, backward per-flag liveness analysis identifies provably unused flag updates, and a persistent cache amortizes the cost of this analysis across executions. Second, for remaining live flags, Cascade maps SF, ZF, CF, and OF directly to ARM NZCV when semantics permit, forwards carry state through the hardware carry chain across ADC and SBB sequences, and fuses common test-and-branch idioms into single ARM instructions. Third, Cascade propagates flag validity across translation block boundaries using per-block interface summaries, guiding code generation so that a block reads flags its predecessors have already established, rather than recomputing them, wherever the cross-block requirement can be proven. We implement Cascade in Box64 and evaluate it on three ARM platforms. Cascade improves 7-Zip LZMA throughput by up to 2.4×, increases Geekbench 6 multi-core scores by up to 36%, and improves Unigine Heaven and Valley benchmark scores by up to 10.6%, with modest compilation overhead.
Förderung
- Ministry of Industry and Information Technology 2024 Cloud Operating System Project
- National NSF of China
- National Laboratory Special Program of the China
- Shanghai Key Laboratory of Scalable Computing and Systems
Zitieren
APA
Yen, J., Wang, J., Wei, Z., Huang, Z., Zhang, Z., Gu, Y., Yu, S., Chen, C., Wang, Y., Yu, X., Wang, H., & Qi, Z. (2026). RISCing It All: Accelerating Binary Translation Using Software-Only Validated Flag Speculation. IEEE Transactions on Mobile Computing, 25(12), 22457-22473. https://doi.org/10.1109/tmc.2026.3718184
Vancouver
Yen J, Wang J, Wei Z, Huang Z, Zhang Z, Gu Y, et al. RISCing It All: Accelerating Binary Translation Using Software-Only Validated Flag Speculation. IEEE Transactions on Mobile Computing. 2026;25(12):22457-22473. doi:10.1109/tmc.2026.3718184
BibTeX
@article{Yen2026,
author = {Yen, James and Wang, Jiarui and Wei, Zhixiang and Huang, Zhibai and Zhang, Ziyang and Gu, Yicheng and Yu, Senhao and Chen, Chen and Wang, Yun and Yu, Xingzi and Wang, Hao and Qi, Zhengwei},
title = {RISCing It All: Accelerating Binary Translation Using Software-Only Validated Flag Speculation},
journal = {IEEE Transactions on Mobile Computing},
year = {2026},
volume = {25},
number = {12},
pages = {22457--22473},
doi = {10.1109/tmc.2026.3718184}
}
EUVIMED