期刊文献+

映射字典导向的64位ARM到RISC-V汇编翻译

64-bit ARM to RISC-V Assembly Translation Guided by Mapping Dictionary
下载PDF
导出
摘要 RISC-V是一个新兴开放的精简指令集架构,采用模块化设计,具有精简、可靠且支持多平台的优点.RISC-V指令集架构的推广需要其软件生态的支撑,但目前RISC-V的软件生态还不够丰富,亟需建设,软件生态建设过程中需要将其他架构的软件向RISC-V架构迁移适配,现有的ARM到RISC-V汇编迁移辅助工具还不够成熟,存在寄存器使用错误、程序分支控制错误等诸多问题.因此,本文设计和实现了一个64位ARM到RISC-V的汇编翻译工具,通过设计指令映射字典将指令映射关系与工具的其他模块松耦合,实现了工具的高拓展性;根据两种架构的应用二进制接口差异设计了寄存器映射字典,充分利用了RISC-V的寄存器与内存资源.与现有工具相比,本工具更易拓展,并且支持更多指令类型. RISC-V is an emerging and open architecture of reduced instruction set,which adopts modular design and has the advantages of simplicity,reliability and support for multiple platforms.The promotion of the RISC-V instruction set architecture requires the support of its software ecosystem,but the current software ecosystem for RISC-V is not rich enough and needs to be built urgently.The process of building the software ecosystem requires the migration and adaptation of software from other architectures to the RISC-V architecture.The existing ARM to RISC-V assembly migration tools are not mature enough and have many issues such as incorrect use of registers and program branch control errors.Therefore,this article design and implement an assembly translation tool from 64-bit ARM to RISC-V,and the instruction mapping relationship is loosely coupled with other modules of the tool by designing an instruction mapping dictionary to achieve a high scalability of the tool;a register mapping dictionary is designed according to the difference of application binary interfaces between the two architectures,which makes full use of the register and memory resources of RISC-V.Compared to existing tools,this tool is easier to expand and supports more types of instruction.
作者 贾金成 朱家鑫 唐震 王志鹏 王伟 JIA Jincheng;ZHU Jiaxin;TANG Zhen;WANG Zhipeng;WANG Wei(School of Computer and Electronic Information,Guangxi University,Nanning 530004,China;Institute of Software Chinese Academy of Sciences,Beijing 100190,China;University of Chinese Academy of Sciences,Nanjing,Nanjing 211135,China;Software Application and Service Research Center,China Electronics Standardization Institute,Beijing 100007,China)
出处 《小型微型计算机系统》 CSCD 北大核心 2024年第8期2041-2048,共8页 Journal of Chinese Computer Systems
基金 中国科学院战略性先导科技专项项目(XDA0320000,XDA0320100)资助 国家自然科学基金联合基金项目(U20A6003)资助.
关键词 RISC-V ARM 汇编语言 软件移植 RISC-V ARM assembly language software migration
  • 相关文献

参考文献5

二级参考文献5

共引文献55

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部