Hi,
I'm new to D. I tried the basic Hello World program ("dmd hello.d")
but it produced a 316 KB big binary. The same thing with C ("gcc
hello.c") is about 9 KB. Is there a way to reduce the size of the
produced binary?
Thanks,
Laszlo
On 26 February 2012 21:28, Jabba Laci wrote:
> Hi,
>
> I'm new to D. I tried the basic Hello World program ("dmd hello.d")
> but it produced a 316 KB big binary. The same thing with C ("gcc
> hello.c") is about 9 KB. Is there a way to reduce the size of the
> produced binary?
>
> Thanks,
>
> Laszl
You may try -L--gc-sections (in case of gdc in combination with
-ffunction-sections -fdata-sections) and -L-s