<div dir="ltr"><div dir="ltr">On Tue, Jun 9, 2020 at 12:46 AM H. S. Teoh via Digitalmars-d <<a href="mailto:digitalmars-d@puremagic.com">digitalmars-d@puremagic.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, Jun 09, 2020 at 12:09:04AM +1000, Manu via Digitalmars-d wrote:<br>
[...]<br>
>    I don't want a binary full of code that shouldn't be there. It's<br>
>    very important to be able to control what code is in your binaries.<br>
>    If it's not referenced, it doesn't exist.<br>
[...]<br>
<br>
Could you just use LTO for this?  LDC's LTO, for example, lets the<br>
linker discard unreferenced symbols.<br></blockquote><div><br></div><div>I think the compiler should specify behaviour that's universally compatible, and doesn't depend on special tooling to integrate with existing workflows.</div></div></div>