Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
berkes
· 5y ago · 0 comments
Rust uses static linking (by default). So everything and the kitchen sink is compiled in.
https://stackoverflow.com/a/29008355
Comments
[–]
ComputerGuru
5y ago
Binaries should also be stripped before comparing file size.
[–]
Rochus
5y ago
That might be an explanation for the huge size; unfortunately we don't know whether the author used a stripped version or not.
[–]
generalizations
5y ago
Apparently stripped binaries aren't the common experience, so I don't see why they should be used for comparison.
[–]
ComputerGuru
5y ago
Debug info size depends on the language and the compiler. Binary packages installed via package managers are also typically stripped. There are too many confounding variables, simply running `strip foo` before comparing evens the playing field.
[–]
Rochus
5y ago
The same applies to my example; the exe includes a statically linked version of Qt as well as all the other stuff mentioned. So the question remains.