4 ms·
> 4. D: 710 KB, same as Rust > 5. Nim: 970 KB, statically linked > Nim wins, by a large margin. 970 KB > 710 KB.
by apta 12y ago
> 4. D: 710 KB, same as Rust
> 5. Nim: 970 KB, statically linked
> Nim wins, by a large margin.
970 KB > 710 KB.
- cornstalks 12y agoBut 970 KB < 710 KB + larger dependencies. Both Rust and D have dependencies, as mentioned by the parent comment. You can argue whether or not the dependencies should be included in an executables size, but I think the comment is trying to show that Nim can create a complete program (with no dependencies) with less space.
- Cyph0n 12y agoI mentioned that I couldn't get a fully static binary with Rust and D.
- zem 12y agosounds like the D binary was not statically linked.
- Cyph0n 12y agoIt was not. I couldn't find the correct compiler flag.