rvdasm

Crates.iorvdasm
lib.rsrvdasm
version0.2.1
created_at2025-04-08 22:21:54.302744+00
updated_at2025-09-24 17:08:48.592742+00
descriptionA RISC-V disassembler written in Rust
homepage
repositoryhttps://github.com/iansseijelly/rvdasm
max_upload_size
id1626037
size333,166
Lux Zhang (iansseijelly)

documentation

README

RVDASM

A RISC-V disassmbler written in rust.

Key features

  • Correct: code-gen from riscv-opcodes
  • Programmer-friedly: outputs to struct, not string
  • Simple: easy to read and modify

Usage

Example:

RUST_LOG=debug cargo run  --example dasm -- --file [ELF] --print

Supported Extensions

I, M, A , C, F, D, V, zicsr.

Distinguishes XLEN of 32 or 64.

Development Notes

The isa.rs file is generated from iansseijelly:riscv-opcodes. This repo is also registered as a submodule in ${ROOT}/riscv-opcodes. Run gen.sh in that repo to generate isa.rs and isa_consts.rs.

Commit count: 43

cargo fmt