4 ms·
Linux uses the sysv calling convention. I believe these are the official or semi-official documents for x86 64-bit and 32-bit, respectively: https://gitlab.com
by mike_hock 3y ago
Linux uses the sysv calling convention. I believe these are the official or semi-official documents for x86 64-bit and 32-bit, respectively:
https://gitlab.com/x86-psABIs/x86-64-ABI https://gitlab.com/x86-psABIs/x86-64-ABI (Table 3.4 in section 3.2.3 lists which registers may be clobbered and which must be saved)
https://gitlab.com/x86-psABIs/i386-ABI https://gitlab.com/x86-psABIs/i386-ABI
I'd be very surprised if Windows didn't have both caller-save and callee-save registers.