www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - produced binary is quite big

reply Jabba Laci <jabba.laci gmail.com> writes:
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
Feb 26 2012
parent Trass3r <un known.com> writes:
You may try -L--gc-sections (in case of gdc in combination with  
-ffunction-sections -fdata-sections) and -L-s
Feb 26 2012