Dead Code Elimination

Walter Bright newshound2 at digitalmars.com
Wed Oct 21 19:34:17 UTC 2026


On 10/21/2026 12:10 AM, libxmoc wrote:
> I disassembled both app and app.o, and `removeme` exists in both

It's the job of the linker to remove uncalled functions.

The compiler does not know what other code the result may be linked with, and 
what functions that other code calls.


More information about the Digitalmars-d mailing list