Top "Calling-convention" questions

A calling convention refers to the way a function transmits parameters to a called function and receives a return value from it.

How to understand volatile and non-volatile registers?

CPU registers can be classified as volatile and non-volatile by calling convension, how does does the meaning of word volatile …

cpu-registers calling-convention volatility
x86_64 calling conventions and stack frames

I am trying to make sense out of the executable code that GCC (4.4.3) is generating for an x86_64 machine running …

c stack x86-64 calling-convention backtrace
How do C compilers implement functions that return large structures?

The return value of a function is usually stored on the stack or in a register. But for a large …

c compiler-optimization calling-convention abi compiler-theory
Understanding C disassembled call

I want to learn about C calling convention. To do this I wrote the following code: #include <stdio.h&…

c assembly x86-64 calling-convention att
Why does the Mac ABI require 16-byte stack alignment for x86-32?

I can understand this requirement for the old PPC RISC systems and even for x86-64, but for the old …

macos memory-alignment callstack calling-convention abi