Thread overview
x64 ABI
Oct 14, 2019
Marcel
Oct 14, 2019
Stefan Koch
Oct 14, 2019
Marcel
October 14, 2019
It appears that the ABI specification only describes the register convention for x86. Where can I find which registers get preserved across function calls for 64-bit targets?
October 14, 2019
On Monday, 14 October 2019 at 16:02:28 UTC, Marcel wrote:
> It appears that the ABI specification only describes the register convention for x86. Where can I find which registers get preserved across function calls for 64-bit targets?

It's the same as c++.

https://en.wikipedia.org/wiki/X86_calling_conventions#x86-64_calling_conventions
October 14, 2019
On Monday, 14 October 2019 at 16:05:34 UTC, Stefan Koch wrote:
> On Monday, 14 October 2019 at 16:02:28 UTC, Marcel wrote:
>> It appears that the ABI specification only describes the register convention for x86. Where can I find which registers get preserved across function calls for 64-bit targets?
>
> It's the same as c++.
>
> https://en.wikipedia.org/wiki/X86_calling_conventions#x86-64_calling_conventions

Excellent, thank you!