Remix.run Logo
maximilianburke 4 days 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.

jvert 3 days ago | parent | next [-]

Early 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 3 days ago | parent [-]

Good times.

to11mtm 4 days ago | parent | prev [-]

For 32 bit yes, although IIRC x64 convention is caller clean-up.

maximilianburke 4 days ago | parent [-]

That's why I said 32-bit Win32 :-)