2 releases
0.0.2-wip | Jul 31, 2020 |
---|---|
0.0.1-wip | Jul 31, 2020 |
#22 in #assembler
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.
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
~52K SLoC