3 ms·
Cool! Certainly quicker than loading up cross compilers (even when they're so easy to get on Debian/Ubuntu), building a binary, and running the right version of
by jdub 10y ago
Cool! Certainly quicker than loading up cross compilers (even when they're so easy to get on Debian/Ubuntu), building a binary, and running the right version of objdump.
The Rust Playground at https://play.rust-lang.org/ https://play.rust-lang.org/ has a similar function, letting you check ASM, LLVM IR, and MIR (Rust's mid-level intermediate representation) output for current versions of the Rust compiler.
- masklinn 10y agoFWIW godbolt also does rust (http://rust.godbolt.org http://rust.godbolt.org) which is convenient because play.rust-lang.org doesn't perform the aggressive cleanup/removal of assembly godbolt does.
- kibwen 10y agoThough it looks like godbolt only has a Rust compiler up to version 1.11 (current stable is 1.13), so it may not be including optimizations in the current Rust release.
- steveklabnik 10y agohttps://github.com/mattgodbolt/gcc-explorer/issues/139 https://github.com/mattgodbolt/gcc-explorer/issues/139