4 ms·
Rust uses static linking (by default). So everything and the kitchen sink is compiled in. https://stackoverflow.com/a/29008355 https://stackoverflow.com/a/2900
by berkes 5y ago
Rust uses static linking (by default). So everything and the kitchen sink is compiled in.
https://stackoverflow.com/a/29008355 https://stackoverflow.com/a/29008355
- ComputerGuru 5y agoBinaries should also be stripped before comparing file size.
- generalizations 5y agoApparently stripped binaries aren't the common experience, so I don't see why they should be used for comparison.
- ComputerGuru 5y agoDebug 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 agoThat might be an explanation for the huge size; unfortunately we don't know whether the author used a stripped version or not.
- Rochus 5y agoThe 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.