On Friday, 8 April 2022 at 03:20:29 UTC, dangbinghoo wrote:
hi,
I just asked for help about this before, on that time, my
solution is to remove whatever dub dependencies which are
optional.
now, I'm re-examining the dlang program footprint size, and I
put a github example repo here:
https://github.com/dangbinghoo/dlang_footprint_test.git
the example is simply a json ser/deser test depends on ASDF, on
my machine it generates a binary about 914K using LDC2.
Note: as I'm focused on embedded system development, what I
want help with is only for the situation using LDC compiler.
thanks!
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.