News for hackers. Stuff that matters.
Re:Why is a Rust executable large? (2016) by deg4uss3r on Thursday May 16, 2019 @08:53AM (#19928484)
Huh, 271K on MacOS using debug (268K using release)..

Edit: 1.34.2

Re:Why is a Rust executable large? (2016) by edflsafoiewq on Thursday May 16, 2019 @09:04AM (#19928593)
The larger size on Linux is because the binary itself contains the debug symbols. On Mac, they're in a separate .dSYM file from what I understand. See https://github.com/rust-lang/rust/issues/46034.

According to that thread, the size jump of the unstripped binary is probably from libstd being compiled with -C debuginfo=1 now.

Re:Why is a Rust executable large? (2016) by deg4uss3r on Thursday May 16, 2019 @09:37AM (#19928891)
Ah thanks, that makes sense!