Hacker News new | ask | show | jobs
by pornel 880 days ago
I think linkers don't go this far to rewrite the debug info. If libstd is used, libstd's debug info is used.

The second problem is dynamic dispatch. The overhead in "hello world" is from printing and panicking machinery (it handles closed stdout), and these features use vtables, so it's even harder to precisely analyze what's actually used and what isn't.