How to stop DMD from exploding the executable file size?
H. S. Teoh
hsteoh at qfbox.info
Sat Sep 3 01:05:28 UTC 2022
On Sat, Sep 03, 2022 at 12:51:09AM +0000, ryuukk_ via Digitalmars-d wrote:
> Just look: https://i.imgur.com/5JheSIA.png
>
> 5mb for DMD
>
> 200kb for LDC
>
> Both release build
>
> It is very sad, what is walter doing?
Somebody already pointed out, it's LDC's linker that's eliminating the
excess weight. You can prove this yourself by using `dmd -c` and then
linking the object files yourself, supplying additional LTO options to
discard unreferenced sections.
T
--
The diminished 7th chord is the most flexible and fear-instilling chord. Use it often, use it unsparingly, to subdue your listeners into submission!
More information about the Digitalmars-d
mailing list