How does one use Rust's assembly macros?

A forum for ARM assembly programmers (32 & 64 bit)
Post Reply
Seismus
Posts: 5
Joined: Mon Oct 27, 2025 3:00 am

How does one use Rust's assembly macros?

Post by Seismus »

After reading Randall Hyde's phenomenal AOAA, how do we use Rust's assembly macros? There are three macros, asm!, global_asm!, & naked_asm! but I don't understand the instructions on how to use them. There is also the #[unsafe(naked)] attribute.

References:
https://doc.rust-lang.org/reference/inl ... embly.html
https://doc.rust-lang.org/reference/att ... -attribute
Post Reply