Support rustc_codegen_cranelift
#287
-
It would be nice if cargo-show-asm supported In order to make rustc use Cranelift, I have installed it following these instructions: https://github.com/rust-lang/rustc_codegen_cranelift My project's # This line needs to come before anything else in Cargo.toml
cargo-features = ["codegen-backend"]
[package]
name = "quick_test"
version = "0.1.0"
edition = "2021"
[profile.release]
codegen-backend = "cranelift" The output I get when running
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
By default But if you compile |
Beta Was this translation helpful? Give feedback.
-
Ah, that works, thanks! |
Beta Was this translation helpful? Give feedback.
By default
cargo-show-asm
doesn't perform disassembly, but asks rustc to produce raw asm files, parses them and makes them accessible for users. Problem with cranelift backend is that it doesn't support emitting asm files.But if you compile
cargo-show-asm
with"disasm"
feature you can pass--disasm
option along with usual flags. This should, in theory, support cranelift as well.