RISC-V 教育六码列表
RISC-V educational hexacode listing
我想将我的教育模拟器从 Y86 更改为 RISC-V。我喜欢Y86组合的hexacode+listing文件,like
| # Execution begins at address 0
0x000: | .pos 0
0x000: 30f400010000 | init: irmovl Stack, %esp # Set up stack pointer
0x006: 30f500010000 | irmovl Stack, %ebp # Set up base pointer
0x00c: 8024000000 | call Main # Execute main program
0x011: 00 | halt # Terminate program
RISC-V 是否有类似的东西?
RARS 有一个并排显示地址、十六进制代码、基本指令和源代码的视图。
您可以使用支持 RISC-V 的 GNU 标准工具(如 objdump)在终端中获得类似的 hexcode/source 视图。
另外还有 https://github.com/michaeljclark/riscv-disassembler 可以满足您的需要。
免责声明:我是 RARS 的主要作者和维护者。
我想将我的教育模拟器从 Y86 更改为 RISC-V。我喜欢Y86组合的hexacode+listing文件,like
| # Execution begins at address 0
0x000: | .pos 0
0x000: 30f400010000 | init: irmovl Stack, %esp # Set up stack pointer
0x006: 30f500010000 | irmovl Stack, %ebp # Set up base pointer
0x00c: 8024000000 | call Main # Execute main program
0x011: 00 | halt # Terminate program
RISC-V 是否有类似的东西?
RARS 有一个并排显示地址、十六进制代码、基本指令和源代码的视图。
您可以使用支持 RISC-V 的 GNU 标准工具(如 objdump)在终端中获得类似的 hexcode/source 视图。
另外还有 https://github.com/michaeljclark/riscv-disassembler 可以满足您的需要。
免责声明:我是 RARS 的主要作者和维护者。