收藏切换
Optimizing Cross-Architecture Programming Model Adaptation in SIMD-to-RVV Dynamic Binary Translation
收藏切换
Yuanming Lai1, 2, Yalong Li1, 3, Hanzhi Hu1, 2, Mengyao Xie1, 2, Zhe Wang1, 2, *, Chenggang Wu1, 2
Journal of Computer Research and Development | 2025, 62(6) : 1469 - 1491
Less
收藏切换
Journal of Computer Research and Development | 2025, 62(6): 1469-1491
• Compiling and Scheduling Optimization •
Optimizing Cross-Architecture Programming Model Adaptation in SIMD-to-RVV Dynamic Binary Translation
Full
Yuanming Lai1, 2, Yalong Li1, 3, Hanzhi Hu1, 2, Mengyao Xie1, 2, Zhe Wang1, 2, *, Chenggang Wu1, 2
Affiliations
  • 1State Key Lab of Processors (Institute of Computing Technology, Chinese Academy of Sciences), Beijing 100190
  • 2University of Chinese Academy of Sciences, Beijing 100049
  • 3Henan Institute of Advanced Technology, Zhengzhou University, Zhengzhou 450002
  • born in 1991. PhD candidate. His main research interests include binary translation, computer systems security, and code obfuscation

    born in 2000. Master candidate. His main research interests include binary translation optimization and RISC-V architecture. ()

    born in 1999. Master candidate. His main research interests include binary translator optimization and compiler optimization. ()

    born in 1992. PhD, associate professor, master supervisor. Her main research interests include computer system architecture and system security

    born in 1990. PhD, associate professor, master supervisor. Member of CCF. His main research interests include computer systems security, operating systems, and computer architecture

    born in 1969. PhD, professor, PhD supervisor. Distinguished member of CCF. His main research interests include binary translation, compiler optimization, and computer systems security. ()

About Author:

born in 1991. PhD candidate. His main research interests include binary translation, computer systems security, and code obfuscation

born in 2000. Master candidate. His main research interests include binary translation optimization and RISC-V architecture. ()

born in 1999. Master candidate. His main research interests include binary translator optimization and compiler optimization. ()

born in 1992. PhD, associate professor, master supervisor. Her main research interests include computer system architecture and system security

born in 1990. PhD, associate professor, master supervisor. Member of CCF. His main research interests include computer systems security, operating systems, and computer architecture

born in 1969. PhD, professor, PhD supervisor. Distinguished member of CCF. His main research interests include binary translation, compiler optimization, and computer systems security. ()

Published: 2025-06-02 doi: 10.7544/issn1000-1239.202550135
Outline
收藏切换

RISC-V, renowned for its open-source nature and modular design, has achieved remarkable success in embedded systems and is progressively expanding into the high-performance computing (HPC) domain. While RISC-V hardware tailored for HPC, such as the Sophon SG2042 multi-core processors, has demonstrated performance comparable to x86/ARM counterparts, its underdeveloped software ecosystem remains a critical barrier to broader adoption. To address this challenge, we develop RVBT, a process-level dynamic binary translator for RISC-V, designed to bridge the software gap by efficiently porting the mature x86 ecosystem to RISC-V platforms, thereby accelerating RISC-V’s integration into HPC applications. Focusing on the pervasive use of SIMD instructions in HPC programs, we tackle the inefficiencies arising from fundamental differences in programming models between x86 SIMD and RISC-V vector (RVV) extensions. Specifically, x86 SIMD hardcodes data types within opcodes, whereas RVV dynamically configures vtype and mask registers, leading to redundant operations during direct translation. To overcome this, we propose three innovative optimizations to achieve: 1) Redundancy elimination via data type locality. By leveraging the locality of data types in adjacent SIMD operations, we statically analyze and remove redundant configurations of vtype (achieving 100% dynamic elimination rates for csrr and vsetvl, and 56.31% for vsetvli) and mask settings (74.66% elimination rate in floating-point benchmarks). 2) Hybrid translation with on-demand synchronization. We decouple scalar and vectorized floating-point operations, translating x86 SIMD scalar double-precision instructions to RISC-V’s floating-point extensions and reserving RVV for vectorized operations. Data synchronization between scalar and vector registers is optimized through def-use analysis, achieving a 67.35% dynamic synchronization reduction in floating-point benchmarks. Experimental results on SPEC CPU 2006 demonstrate significant improvements on the optimized RVBT, achieving 47.39% and 40.06% of native execution efficiency for integer and floating-point benchmarks, respectively, representing speedups of 1.21 times and 8.31 times over the unoptimized version. RVBT vastly outperforms QEMU (18.84% and 4.81% for integer and floating-point), with floating-point efficiency surpassing QEMU by 8.33 times, highlighting its potential for deployment in specific HPC scenarios. Crucially, these optimizations are architecture-agnostic: The methodology of exploiting data type locality, hybrid instruction translation, and adaptive synchronization apply equally to ARM SIMD (e.g., NEON) to RVV translation, offering a universal framework for cross-ISA binary compatibility. This work provides a pivotal technical foundation for breaking the software ecosystem deadlock and advancing RISC-V’s role in HPC.

binary translation  /  RISC-V vector extension  /  x86 SIMD  /  cross-architecture programming model adaptation  /  floating-point computation  /  redundant configuration elimination  /  hybrid translation
赖远明, 李亚龙, 胡瀚之, 谢梦瑶, 王喆, 武成岗. SIMD-to-RVV动态二进制翻译中的跨架构编程模型适配优化. 计算机研究与发展, 2025 , 62 (6) : 1469 -1491 . DOI: 10.7544/issn1000-1239.202550135
Yuanming Lai, Yalong Li, Hanzhi Hu, Mengyao Xie, Zhe Wang, Chenggang Wu. Optimizing Cross-Architecture Programming Model Adaptation in SIMD-to-RVV Dynamic Binary Translation[J]. Journal of Computer Research and Development, 2025 , 62 (6) : 1469 -1491 . DOI: 10.7544/issn1000-1239.202550135
Year 2025 volume 62 Issue 6
119
52
Cite this Article
BibTeX
Article Info
doi: 10.7544/issn1000-1239.202550135
  • Receive Date:2025-03-01
  • Online Date:2026-11-10
  • Published:2025-06-02
Article Data
Affiliations
History
  • Received:2025-03-01
  • Revised:2025-04-09
Affiliations
    1State Key Lab of Processors (Institute of Computing Technology, Chinese Academy of Sciences), Beijing 100190
    2University of Chinese Academy of Sciences, Beijing 100049
    3Henan Institute of Advanced Technology, Zhengzhou University, Zhengzhou 450002
References
Share
https://castjournals.cast.org.cn/joweb/jsjyjyfz/EN/10.7544/issn1000-1239.202550135
Share to
QR

Scan QR to access full text

Cite this article
BibTeX
Citations
表12种不同金属材料的力学参数
科
Family
属数
Number of
genus
种数
Number of
species
占总种数比例
Percentage of
total species (%)
属
Genus
种数
Number of
species
占总种数比例
Percentage of total
species (%)
鹅膏菌科Amanitaceae 2 11 5.26 鹅膏菌属 Amanita 10 4.78
小菇科 Mycenaceae 2 12 5.74 丝盖伞属 Inocybe 5 2.39
多孔菌科 Polyporaceae 8 14 6.70 蜡蘑属 Laccaria 5 2.39
红菇科 Russulaceae 3 23 11.00 小皮伞属 Marasmius 6 2.87
小菇属 Mycena 11 5.26
光柄菇属 Pluteus 5 2.39
红菇属 Russula 17 8.13
栓菌属 Trametes 5 2.39
关闭全屏
  • BibTeX
  • EndNote
  • RefWorks
  • TxT