www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - x64 ABI

reply Marcel <marcelpi97 gmail.com> writes:
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?
Oct 14 2019
parent reply Stefan Koch <uplink.coder googlemail.com> writes:
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
Oct 14 2019
parent Marcel <marcelpi97 gmail.com> writes:
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!
Oct 14 2019