pacak / cargo-show-asm

cargo subcommand showing the assembly, LLVM-IR and MIR generated for Rust code
Apache License 2.0
715 stars 35 forks source link

Release 0.2.33: supprot an actual disassembly of binaries and libraries #268

Closed pacak closed 7 months ago

pacak commented 7 months ago

Experimental support for disassembly, cargo-show-asm needs to be compiled with "disasm" feature.

With that you can pass --disasm flag to disassemble binary artifacts (.rlib files or executables) created by cargo.

To work with PGO, BOLT or other optimizations that require non standard build process you can pass path to binary directly with --file.

For cargo-show-asm to detect symbols in your code you need to disable stripping by adding something like this to Cargo.toml

[profile.release]
strip = false

At the moment interleaving rust source (--rust) is not supported

Fixes #174 Fixes #196