Closed
Description
This results in a significant amount of code bloat, forcing instruction cache churn. It also prevents a very large constant amount of dead code from being eliminated and greatly increases the compile-time with link-time optimization. At the moment, a hello world binary compiled with rustc foo.rs -Z lto -O -C link-args="-s -Wl,--as-needed,--gc-sections"
is 400k. It should take at most a few kilobytes for the Rust-specific wrapper around main
, leaving the binary under 10k.