====== x86 calling conventions ====== See: [[http://en.wikipedia.org/wiki/X86_calling_conventions|Wikipedia]] on cdecl, stdcall and other calling conventions]. Also highly informative: [[http://blogs.msdn.com/b/oldnewthing/archive/2004/01/02/47184.aspx|The history of calling conventions, part 1]] and further parts. An extract from "libcgo/386.S" about the 8c/8a/8g calling convention: '' * Calling into the 8c tool chain, where all registers are caller save. '' Otherwise (regarding the stack), the convention in ["cc" 8c]/["asm" 8a]/8g seems to be cdecl-like (callee does not pop the arguments from the stack). ===== See also ===== * [[stdcall]]