← All projects
Project record1 mention
Originally shared on Hacker News

Dynamic ARM assembler for Rust

A dynamic ARM assembler library for Rust that lets developers define ARM assembly instructions through a Rust API, e.g. add(X1, X2, X3).extend(ExtendMode::SXTH, 2) or add(X2, X3, X4).shift(ShiftMode::LSR, 8), supporting dynamic register names plus extension and shift modes. The repo has not yet been published because the author has not picked a name.

Last shared
01 / The problem

What it addresses

dynasm is too restrictive because it uses static register names, and iced-x86 supports only x86/x64, leaving a gap for dynamic ARM assembly generation in Rust.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. Dynamic ARM assembler for Rust

    A dynamic ARM assembler library for Rust that lets developers define ARM assembly instructions through a Rust API, e.g. add(X1, X2, X3).extend(ExtendMode::SXTH, 2) or add(X2, X3, X4).shift(ShiftMode::LSR, 8), supporting dynamic register names plus extension and shift modes. The repo has not yet been published because the author has not picked a name.

    Problem: dynasm is too restrictive because it uses static register names, and iced-x86 supports only x86/x64, leaving a gap for dynamic ARM assembly generation in Rust.

    Posted by @comonoid · Original source ↗

    Source text · @comonoid · · Source ↗

    I'm working on a dynamic ARM assembler for Rust. dynasm is too restrictive: it uses static register names, and iced-x86 is x86/x64 only.