On 2/9/2014 5:48 AM, Dicebot wrote:
On Sunday, 9 February 2014 at 13:19:40 UTC, Jakob Ovrum wrote:
I have investiagted relevant parts of DMD for months. It simply does not work
that way and changing it would require huge frontend refactoring. Inlining
does not affect bloat in DMD at all. Every instance that is ever mentioned in
code will always make its way to the target binary. You can trivially check it.

It is the linker's job to purge unused code.

Please show me the one who is capable of doing it. ld's --gc-sections currently
breaks binaries and it is the only one I am aware about.

You're right. Unfortunately, D has to use existing linkers. That means we cannot build the compiler to require a possible, desirable, but non-existent linking technology.

Reply via email to