I found a simple Hello World program D executable is big size, about 9.2 MiB. I'm using gdc-4.8 compiler. Is this a feature or some kind of bug?
Thanks for all responses!
I guess you are statically linking against the debug versions of the standard libraries.
First, the size of the executable depends on the use of dynamic vs. static linking of the standard libraries. If you statically link your executable then debug information is another contributor to size.
In numbers (I don't have gdc at hand):
As far as I know gdc does not use/support -gc-section which also contributes to executable size.