Rustaceans at the border
Rustaceans at the border
Posted Apr 16, 2022 1:00 UTC (Sat) by nybble41 (subscriber, #55106)In reply to: Rustaceans at the border by Hello71
Parent article: Rustaceans at the border
> unix linkers have pruned unnecessary object files from the final link for basically as long as unix has existed
Yes, but Rust goes farther. It doesn't just prune unused object files as a whole but individual functions, global data, trait implementations, and even code paths, taking advantage of static analysis across module boundaries. The closest equivalent in C would be link-time optimization, which is relatively new and not enabled by default.
