-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Closed
Labels
I-compiletimeIssue: Problems and improvements with respect to compile times.Issue: Problems and improvements with respect to compile times.I-slowIssue: Problems and improvements with respect to performance of generated code.Issue: Problems and improvements with respect to performance of generated code.
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.
Metadata
Metadata
Assignees
Labels
I-compiletimeIssue: Problems and improvements with respect to compile times.Issue: Problems and improvements with respect to compile times.I-slowIssue: Problems and improvements with respect to performance of generated code.Issue: Problems and improvements with respect to performance of generated code.