Compiler: Size of generated executable file

Lutger lutger.blijdestijn at gmail.com
Sat Jan 9 09:05:57 PST 2010


On 01/09/2010 04:36 PM, Ph wrote:
> Why a generated file is so huge?

Size of binraries are big because of typeinfo, standard library and 
bloat from templates. C++ binaries are probably also much bigger when 
the std lib is compiled statically and also bloat up pretty fast when 
you use templated code (especially iostream). The 6kb you mention is 
excluding the MS runtime dll.

It is not a priority for dmd2. With ldc there are some switches I 
believe to selectively turn of generating TypeInfo. Is it a problem for 
you? Eventually in a bigger program the bloat is probably on par with C++.



More information about the Digitalmars-d mailing list