On Saturday, 9 April 2022 at 02:56:50 UTC, dangbinghoo wrote:
On Saturday, 9 April 2022 at 02:19:52 UTC, dangbinghoo wrote:
On Friday, 8 April 2022 at 03:26:29 UTC, dangbinghoo wrote:
On Friday, 8 April 2022 at 03:20:29 UTC, dangbinghoo wrote:
[...]

PS: I need the program link Phobos statically, don't want to use .so except the basic C library. so I added option `-link-defaultlib-shared=false` in dub.json by default, this should not be changed.

hi, please help with this, can we reduce the footprint?

thanks!

OK, I just put on another git repo, which is the simpley helloworld in D, and it
generates 849KB for print a single line!

https://github.com/dangbinghoo/hello_world_d

so, maybe there's something wrong with D compiling?


thanks!

OK, talked in Discord.

answer is clear: 1. D runtime is about 400KB on amd64 stripped. 2. phobos is set of big templates, writeln is expensive.
betterC print a helloworld only costs 6.3KB stripped.




thanks!

Reply via email to