removal of dead functions and methods
ketmar via Digitalmars-d
digitalmars-d at puremagic.com
Wed Dec 24 12:54:10 PST 2014
On Wed, 24 Dec 2014 15:10:17 +0000
Kapps via Digitalmars-d <digitalmars-d at puremagic.com> 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20141224/bde51179/attachment.sig>
More information about the Digitalmars-d
mailing list