RISC-V Toolchain Usage
Assembler and Disassembler
This is the whole content of test.asm
Use riscv64-unknown-elf-as
to compile it to binary code.
Then use riscv64-unknown-elf-objdump
to dump the binary code.
Question: Can you explain how the instructions are encoded according to the output of riscv64-unknown-elf-objdump
? Or does the output match your imagination?
Last updated