IT lexicon › Programming › regcall

regcall

Programming På svenska → Updated: 2026-11-06

Intel's calling convention that puts as many arguments and return values in registers as it possibly can.

A platform's standard calling convention is a compromise struck for all code ever written. System V gets six integer argument registers, Microsoft four, and a struct full of vectors easily ends up on the stack. __regcall, introduced with Intel's C/C++ compiler, instead throws almost the entire register file at the problem — general-purpose registers as well as XMM, YMM and ZMM — and lets compound return values come back in registers too.

It is aimed at dense numeric code and SIMD routines calling each other in inner loops, where every spill to memory shows up in the profile. Clang and LLVM support it as x86_regcallcc. Treat it as a private arrangement: anything exported to other languages or libraries should stick to the platform ABI.

← Back to the lexicon