[fpc-devel] Delphi smart-linking perspective ( Language change and implementation ... )

Paul Ishenin webpirat at mail.ru
Fri Jun 5 17:47:06 CEST 2009


Jonas Maebe wrote:
> All programs are stripped. As you can see, wpo can now remove about 
> 61kb (before, wpo gained 8kb). Still not very much. The reason that 
> you need several iterations to get all possible savings, is that the 
> compiler only records calls to virtual methods from code that is 
> included in the final program. So removing a method may cause some 
> other methods to be no longer from anywhere, etc.
FPC does not strip empty methods, functions, initialization/finalization 
sections. Does wpo strips them? How difficult is to teach compiler to 
remove them during compilation?
> It's not yet committed, because there are still some compiler crashes 
> when recompiling units after my changes, similar to 
> http://bugs.freepascal.org/view.php?id=13323
Good that you care this time.

Best regards,
Paul Ishenin.



More information about the fpc-devel mailing list