[fpc-devel] Merging identical procedure proposals

Yuriy Sydorov jura at cp-lab.com
Sat Oct 16 21:33:53 CEST 2021

On 16.10.2021 21:45, J. Gareth Moreton via fpc-devel wrote:
> I figured that virtual methods would be no-go and that this would only apply to static methods.  It seems a shame to 
> dismiss it completely though because there's a huge number of procedures that compile to the same code, especially when 
> generics come into play, and I have identified a fair number in the compiler itself (at least when compiled under 
> x86_64-win64).

Instead of complete elimination of the duplicate function code you can replace it by the unconditional jump to the 
single copy of the function code.


More information about the fpc-devel mailing list