dead function elimination

Nick Clifton
Tue Nov 14 12:16:00 GMT 2006

Hi Jimmy,

> I thght the linker alone was supposed to be able to do 
> dead-procedure-elimination.

No.  It is a nice feature, but it is not a requirement of a linker.

> After all can't the linker determine which 
> procedures are unreferenced in the final executable?

Which is exactly what the --ffunction-sections and --gc-sections 
switches do.

> If i'm not mistaken the diablo linker can do this?

It probably can.


More information about the Gcc-help mailing list