Calling Convention

Noun · Development

Definitions

  1. The low-level contract that defines how function calls pass arguments, return values, and preserve registers at the machine-code level. Calling conventions are crucial in compiler output, FFI boundaries, and debugging because mismatches can cause subtle crashes or corrupted state.

    In plain English: The low-level rule set for how functions call each other in compiled code.

    Example: "The native extension kept crashing because the wrapper assumed the wrong calling convention for the vendor's C API on Windows."

Related Terms