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

Jonas Maebe jonas.maebe at elis.ugent.be
Fri Jun 5 17:55:46 CEST 2009


On 05 Jun 2009, at 17:47, Paul Ishenin wrote:

> 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?

No.

> How difficult is to teach compiler to remove them during compilation?

I don't know, I have not looked into it. I don't think it's really  
trivial though.


Jonas



More information about the fpc-devel mailing list