produced binary is quite big

2012-02-26 Thread Jabba Laci
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

Re: produced binary is quite big

2012-02-26 Thread James Miller
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

Re: produced binary is quite big

2012-02-26 Thread Trass3r
You may try -L--gc-sections (in case of gdc in combination with -ffunction-sections -fdata-sections) and -L-s