[fpc-devel] Automatic inlining [was: completely messed up subject line]

Jamie McCracken jamie-junk at blueyonder.co.uk
Mon May 30 19:53:38 CEST 2005


Jonas Maebe wrote:
> 
> On 30 May 2005, at 18:29, Jamie McCracken wrote:
> 
>> What would be nice is to have a compiler switch which takes say an  
>> 8bit value to indicate how many bytes a function must contain in  
>> order to be inlined automatically. That way it is scaleable and so  
>> wont exacerbate the executable file size problem too much.
> 
> 
> At the point the inlining is performed, the compiler does not have  the 
> slightest idea how large the function will be in terms of bytes.  There 
> is already a an extremely crude "complexity calculation"  function, but 
> it does not have any relation to size (only to speed --  to a certain 
> extent).

It doesn't have to be bytes - Would you now how many opcodes are in the 
function at that point?


jamie.


> 
> 
> Jonas
> 
> 
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
> 
> 





More information about the fpc-devel mailing list