RISC 模拟器中的优化实时汇编
Optimized Real-Time Assembly in a RISC Simulator
AI总结:
本文介绍集成 RISC-V 汇编与仿真教学平台 ASPIRE,并评估两种实时汇编算法,其中优化算法仅对程序变更部分进行增量汇编以提升运行时性能。
摘要:
RISC-V 指令集架构(ISA)模拟器对于教授汇编语言和现代 CPU 架构概念非常有用。用于教育中演示 RISC-V 的汇编/仿真平台(Assembly/Simulation Platform for Illustration of RISC-V in Education,ASPIRE)是一个集成的 RISC-V 汇编器和模拟器,用于演示这些概念并评估生成机器语言代码的算法。本文介绍了 ASPIRE,展示了该模拟器中作为教学辅助手段、以交互方式解释 RISC-V ISA 的若干选定功能,随后评估了两种汇编算法。随着代码在模拟器中被编辑,两种汇编算法都会实时运行。优化后的算法执行增量汇编,且仅限于程序中发生更改的部分。随后,研究依据总体运行时性能对两种算法进行了评估。
英文摘要:
Simulators for the RISC-V instruction set architecture (ISA) are useful for teaching assembly language and modern CPU architecture concepts. The Assembly/Simulation Platform for Illustration of RISC-V in Education (ASPIRE) is an integrated RISC-V assembler and simulator used to illustrate these concepts and evaluate algorithms to generate machine language code. In this article, ASPIRE is introduced, selected features of the simulator that interactively explain the RISC-V ISA as teaching aides are presented, then two assembly algorithms are evaluated. Both assembly algorithms run in real time as code is being edited in the simulator. The optimized algorithm performs incremental assembly limited to only the portion of the program that is changed. Both algorithms are then evaluated based on overall run-time performance.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。