How to read rustc assembly?


#1

Are there any resources for reading Rust assembly?

Basically ways to make assembly more pretty, references to resources explaining format used in Rust, debugging assembly etc.


#2

According to https://github.com/rust-lang/rust/blob/af60248ecf29127e32f5a99020be7eacc4046035/mk/platform.mk#L219 it is llvm-mc. I don’t know anything about it.

You could debug assembly with gdb as it understands most source code formats.


#3

There was a similar question asked a little while ago: http://www.reddit.com/r/rust/comments/2nr84y/how_do_you_generate_readable_assembly/ . It had a few responses that might be helpful.