5 ms·
Callee clean-up was (is? is.) standard for the 32-bit Win32 API; it's been pretty stable now for coming up on 40 years now.
by maximilianburke 1y ago
Callee clean-up was (is? is.) standard for the 32-bit Win32 API; it's been pretty stable now for coming up on 40 years now.
- to11mtm 1y agoFor 32 bit yes, although IIRC x64 convention is caller clean-up.
- maximilianburke 1y agoThat's why I said 32-bit Win32 :-)
- jvert 1y agoEarly in Win32 development, the x86 calling convention was __cdecl. I did all the work to change it to __stdcall (callee clean-up). Yes, it was done purely for performance reasons. It was a huge change to the codebase and as a side-effect turned up a lot of "interesting" code which relied on cdecl calling conventions.
- scottlu2 1y agoGood times.