0Pricing
Assembly Language & x86 Low-Level Systems Programming · Lesson

Calling Conventions: cdecl, stdcall, and System V

Compare the major x86 calling conventions so your assembly and C code agree on where arguments go, who cleans the stack, and which registers are preserved.

Why Conventions Matter

For assembly and C to interoperate, both sides must agree on a calling convention: how arguments are passed, who cleans the stack, and which registers must be preserved.

Argument Passing

Conventions differ on where arguments go: on the stack, in registers, or a mix. Getting this wrong corrupts data silently.

All lessons in this course

  1. Calling Assembly from C
  2. Calling C from Assembly
  3. Mixed-Language Programming Techniques
  4. Calling Conventions: cdecl, stdcall, and System V
← Back to Assembly Language & x86 Low-Level Systems Programming