[fpc-pascal] Registers used by calling conventions

Anthony Walter sysrpl at gmail.com
Fri Mar 8 22:33:12 CET 2019

What registers are used by default calling convention and where can I find
more information about Free Pascal asm details?

When writing code using the asm block on Delphi in Windows, the default
calling convention (fastcall) would pass arguments in registers EAX, EDX,
ECX then the stack in that order.

Checking registers in Lazarus on 64 bit Linux, I see the default calling
convention is using RSI and RDI, the source and destination index registers.

Also is it possible to get the Lazarus assembler to show instructions in
Intel mode rather than AT&T?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20190308/a1fc6f74/attachment.html>

More information about the fpc-pascal mailing list