IT lexicon › Programming › fastcall

fastcall

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

An umbrella name for 32-bit x86 conventions that pass the first arguments in registers rather than on the stack — in several mutually incompatible flavours.

On 32-bit x86, cdecl and stdcall pushed every argument onto the stack, costing a memory write and a memory read per argument. Microsoft's __fastcall puts the first two integer arguments in ecx and edx, pushes the rest right to left, and has the callee clean up the stack just like stdcall.

The name was never a standard, though. Borland's version, which Delphi calls register, used eax, edx and ecx, and Watcom had an ordering of its own. Two libraries that both claimed "fastcall" could therefore fail to call each other. On x86-64 the question is settled: arguments travel in registers by default, and MSVC silently ignores the keyword.

← Back to the lexicon