On Wed, 24 Dec 2014 15:10:17 +0000
Kapps via Digitalmars-d <[email protected]> wrote:

> On Wednesday, 24 December 2014 at 14:08:25 UTC, Dicebot wrote:
> > On Wednesday, 24 December 2014 at 14:04:56 UTC, ketmar via 
> > Digitalmars-d wrote:
> >> Hello.
> >>
> >> i was never thinking about it, but recently i found parts of 
> >> source
> >> code in my compiled D binary. they comes from code generation
> >> functions, which only used in compile time, yet still happily 
> >> sits in
> >> resulting binary. are there any plans to somehow "fix" that?
> >
> > LDC fixes that by using garbage collection of unused symbols by 
> > default.
> 
> Does DMD/Optlink on Windows do this too? I've noticed that using 
> DMD/Optlink on Windows, my executable is 4MB for unittests on a 
> module that uses a lot of CTFE template methods, while with 
> DMD/ld on Linux (and I believe GDC/ld as well), the same test 
> executable is over 40MB.
do `strip -s` with the executable and you will find that most of that
is various debug info.

Attachment: signature.asc
Description: PGP signature

Reply via email to