[GSoC 2025] Templated Hooks - Weekly Update #11

AlbertG albert.guiman at protonmail.com
Wed Aug 20 15:41:22 UTC 2025


On Wednesday, 20 August 2025 at 14:16:52 UTC, Richard (Rikki) 
Andrew Cattermole wrote:
> A couple of thoughts.
>
> It is expected that as you add more symbols you get bigger 
> binaries.
> Which is what templating compiler hooks does.

I forgot to mention, but I intended to make the size comparison 
against LDC, which generates smaller binaries and libs when 
compiling the same program with the same flags, and with 
libphobos/libdruntime linked statically.

In the post I also mentioned I was able to reduce the sizes of 
the libs by stripping them, but still not at the same level with 
LDC's. For example, LDC's `libphobos.a` is ~9M, while GDC's 
`libgphobos.a` is ~25M.


More information about the Digitalmars-d mailing list