Looking at world through __stdcall-colored glasses

2 · Raymond Chen · Sept. 1, 2021, 2:22 p.m.
Windows core components are compiled with the /Gz flag, which sets __stdcall as the default calling convention. On x86-32, the __stdcall calling convention is slightly more efficient than __cdecl because the stack cleanup is done at function return, rather than at the call site.¹ This configuration for Windows core components does mean that component authors wear __stdcall-colored glasses when they write their header files. The post Looking at world through __stdcall-colored glasses appeared fir...