3 ms·
What does this have to do with Linux? If he compiled it on windows it would have been a similar size. As eatingCake already mentioned this is not optimized for
by executesorder66 6y ago
What does this have to do with Linux? If he compiled it on windows it would have been a similar size.
As eatingCake already mentioned this is not optimized for release, but for debugging.
- Joker_vD 6y agoAlmost empty .NET executables are 8 KB. Almost empty MSVC executables are less than 64 KB.
- executesorder66 6y agoI'm asking what this has to do with Linux. This is not a discussion of rust vs .NET. this is a discussion of Linux vs windows. So I don't see how your comment is at all relevant. If you compile the exact same rust code in the post on a windows machine, using cargo like in the post, then is the resulting windows executable file size really any different compared to the linux one?
- userbinator 6y agoMSVC somehow wants to link statically by default, but if you use dynamic linking an empty executable shrinks to around 4k.