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++.

Reply via email to