Why are binaries/executables so large on Windows?

rpgfan3233 rpgfan3233 at gmail.com
Fri Jul 20 08:52:21 PDT 2007


Some thing as simple as:

void main ()
{
}

generates a 75kb executable with dmd 1.018 using the following line:
dmd -O -release test.d

Does anybody know why this happens? The one thing that prevents me from using D is the large size of the generated files.

Here are the sizes of the files generated by the compiler:
test.obj - 395 bytes
test.map - 2390 bytes
test.exe - 76828 bytes

Is Microsoft's OMF naturally large? Are runtime type checks to blame?

If anybody could help or explain this to me, it would be greatly appreciated.



More information about the Digitalmars-d mailing list