why simple hello world binary is ~700KB
Bedros Hanounik
2bedros at NOSPAMgmail.com
Thu Oct 4 13:52:25 PDT 2007
Ok, I tried dmd 2.0 with the same code and got 271KB binary out of it. still huge compared to 6.5KB generated by gcc.
Bedros Hanounik Wrote:
> 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?
>
>
More information about the Digitalmars-d
mailing list