User Tools

Site Tools


go:internals:x86_calling_conventions

Table of Contents

x86 calling conventions

See: Wikipedia on cdecl, stdcall and other calling conventions].

Also highly informative: 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

go/internals/x86_calling_conventions.txt · Last modified: 2019/03/04 11:20 by fgm