6.31.32. x86 Function Attributes
6.31.32 x86 Function Attributes
These function attributes are supported by the x86 back end:
cdecl
-
On the x86-32 targets, the
cdecl
attribute causes the compiler to assume that the calling function pops off the stack space used to pass arguments. This is useful to override the effects of the -mrtd switch. fastcall
-
On x86-32 targets, the
fastcall
attribute causes the compiler to pass the first argument (if of integral type) in the register ECX and the second argument (if of integral type) in the register EDX. Subsequent and other typed arguments are passed on the stack. The called function pops the arguments off the stack. If the number of arguments is variable all arguments are pushed on the stack. - <