why simple hello world binary is ~700KB
Jarrett Billingsley
kb3ctd2 at yahoo.com
Thu Oct 4 19:11:11 PDT 2007
"Bedros Hanounik" <2bedros at NOSPAMgmail.com> wrote in message
news:fe3itj$eks$1 at digitalmars.com...
> why when I compile this program under gdc I get 697KB of binary and when I
> compile similar C code in gcc I get 6.5KB (both under Linux (GCC) 4.1.2
> 20070214 ( (gdc 0.24, using dmd 1.020))
>
>
>
> import std.stdio;
>
> int main ()
> {
> writefln("Hello World!");
> return 0;
> }
>
> how can I get small footprint binaries out of any D compiler? any
> difference between gdc and dmd?
>
What command line did you use?. Non-release builds can be significantly
larger than their release counterparts.
More information about the Digitalmars-d
mailing list