#assembly #risc-v #disassembler #targets #riscv32i-unknown-none-elf

bin+lib riscv-asm

A WIP, simple-to-use assembler and disassembler for riscv32i-unknown-none-elf targets

2 releases

0.0.2-wip Jul 31, 2020
0.0.1-wip Jul 31, 2020

#17 in #targets

MIT license

155KB
774 lines

Contains (ELF exe/lib, 555KB) riscv-test.elf

RISC-V Assembler and Disassembler

A WIP, simple-to-use assembler and disassembler for riscv32i-unknown-none-elf targets.

Build Status Badge Test Status Badge

Building

The binary target dis will disassemble an Elf file passed to it.

$ cargo run --bin dis ./path/to/riscv32i/bin.elf

See the full --help output for more options

$ cargo run --bin dis -- --help
Usage: target/debug/dis [OPTIONS]

Positional arguments:
  input                Path to a RISC-V elf to disassemble

Optional arguments:
  -h, --help           Print the help message and exit
  -a, --allow-pseudo   "Use equivalent pseudo instructions when possible" (default: true)
  -o, --output OUTPUT  Path to write disassembled output into

Dependencies

~2.5MB
~55K SLoC