compiled code file size

Adam D. Ruppe destructionator at gmail.com
Fri Sep 20 09:50:49 PDT 2013


On Friday, 20 September 2013 at 16:44:30 UTC, Temtaime wrote:
> Why? I have a large project.
> If i replace main with "void main() {}" the size is still 26 MB 
> in debug.

Could be due to things like static module constructors or 
typeinfos. There *are* problems with things getting intertwined 
and not being considered dead by the linker, but it does try.

The proof of it is hello world being 150 KB instead of the 6 MB 
or so it would be if it carried all of the dead code from phobos 
too.


More information about the Digitalmars-d mailing list