Compiler: Size of generated executable file

retard re at tard.com.invalid
Thu Jan 14 06:19:41 PST 2010


To conclude this discussion, it seems that executable size could be 
reduced dramatically. Unfortunately the compiler fails to use the 
opportunity in almost all cases.

A typical program would be 50% to 99.999% smaller if the libraries 
(including stdlib) were dynamically linked in, compiler omitted gc when 
it's not needed, and the extra type info would be eliminated - completely 
when no runtime reflection is used at all. Walter doesn't see this as a 
large problem, at least not worth fixing now so we got to get used to 
executables 100x larger than they need to be. Kthxbai



More information about the Digitalmars-d mailing list