[fpc-devel] Inline methods
Jonas Maebe
jonas.maebe at elis.ugent.be
Wed Jan 16 13:51:11 CET 2013
On 16 Jan 2013, at 13:38, Michael Van Canneyt wrote:
> 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 !
Someone else also thought so in the past: http://lists.freepascal.org/lists/fpc-pascal/2009-November/023321.html
:)
Jonas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20130116/72ca8bbe/attachment.html>
More information about the fpc-devel
mailing list