[fpc-devel] Inline methods

Michael Van Canneyt michael at freepascal.org
Wed Jan 16 13:38:35 CET 2013



On Wed, 16 Jan 2013, Jonas Maebe wrote:

> 
> On 16 Jan 2013, at 12:16, Ludo Brands wrote:
>
>       When the method is called from outside the class then it is inlined (x64 linux):
> 
> [snip]
>       But when the method is called from inside the class then a call is used:
> 
> [snip]
>       Using Self.IsFull results in the same code.
>
>       FPC 2.6.0 and 2.7.1 from today.
>
>       A bug?
> 
> 
> Are those calls before or after the method body appears in the source code? The compiler cannot inline anything for which it hasn't parsed the source code yet.

Does that differ ? If so, then I should mention this in the documentation !

Michael.



More information about the fpc-devel mailing list