Compiler-generated implicit symbols and --gc-sections

Dicebot public at dicebot.lv
Mon Jan 6 23:29:01 PST 2014


On Monday, 6 January 2014 at 18:59:00 UTC, Iain Buclaw wrote:
> Of course ! --gc-sections is just a dirty hack.  If you want 
> smaller
> binaries, then you are better off aiding the shared library 
> support. :)
>
> I don't ever recall any of the core maintainers ever endorsing 
> that switch
> anyway....

Hack or not it is pretty much the only existing solution for 
binary bloat which is very strong in D. Shared library support is 
completely irrelevant here - it does not fix the problem of 
compilers generating lot of code that is never actually used.


More information about the D.gnu mailing list