[fpc-devel] Kit's ambitions!

Thorsten Engler thorsten.engler at gmx.net
Fri May 18 09:50:15 CEST 2018


From: fpc-devel <fpc-devel-bounces at lists.freepascal.org> On Behalf Of Wolf
Sent: Friday, 18 May 2018 07:27

This is the disassembly of function GetProcessorUsed: longint;    inline;  Unless you advise me otherwise, I take the absence of function GetProcessorUsed: longint;    inline; mentioned anywhere in this screen print that GetProcessorUsed is indeed inlined. And in the face of your incredulity, I need to remind you that I get all the compiler complaints about inlining unless  I restrict memory operations to the local stack, as outlined in my original message.



 

The line numbers mentioned in your disassembly screen shot don’t line up with the source code you’ve previously posted, and the screenshot doesn’t show enough context to say anything about this being either simply the disassembly of the GetProcessorUsed function or really a place where you called GetProcessorUsed in source code and the compiler inlined the call.

 

But given the fact that you can see it building a stack frame, I would strongly suspect that you are simply showing the disassembly of GetProcessorUsed here instead of a call site which is calling GetProcessorUsed and has the call inlined.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20180518/0f52fff4/attachment.html>


More information about the fpc-devel mailing list