This answer was provided by harold as a comment, but moving it here so I can mark it as the answer:
What registers need preserved in Microsoft x86-64 Calling convention?
-
23-09-2022 - |
質問
I cant seem to find what registers need to be preserved in the x86-64 Microsoft calling convention. I understand the first 4 parameters are in rcx/rdx/r8/r9 (Assuming non-floats). But what other registers do I need to preserve/if any?
For example in CDECL I have to preserve EBX/EDI/ESI. Is there any such notion in x86-64, or can I simply use any of the available registers?
x86-64 Microsoft (Windows x64) is a different calling convention than the x86-64 System V ABI: Why does Windows64 use a different calling convention from all other OSes on x86-64?
解決
所属していません StackOverflow