Closed AccessViolation95 closed 5 months ago
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.
Ah, that works, thanks!
It would be nice if cargo-show-asm supported
rustc_codegen_cranelift
. It would be useful for comparing the output of Cranelift and LLVM.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
Cargo.toml
looks like this:The output I get when running
cargo asm
is: