why simple hello world binary is ~700KB
Simen Haugen
simen at norstat.no
Fri Oct 5 08:11:47 PDT 2007
"Gregor Richards" <Richards at codu.org> wrote in message
news:fe3opi$n0o$1 at digitalmars.com...
> As per usual, the person asking this has not stripped his binary. How do
> so many people continue to labor under the misconception that no extra
> info is added to the binary by default?
>
> Strip your binaries.
Is there a strip utility for dmd produced .exe files?
If I try to use gnu strip i get "\temp\t.exe: File format not recognized"
A test with dmd 1.021 makes hello world 113kb, and after upx 49kb.
Of course, a simple C version is 16kb and 13kb after upx.
I'd still prefer D over C :)
More information about the Digitalmars-d
mailing list