7.2. Function Calling Sequence

LSB-conforming applications shall use the function calling sequence as defined in Chapter 3 of the System V ABI, IA32 Supplement.

7.2.1. Registers

LSB-conforming applications shall use the general registers provided by the architecture in the manner described in Chapter 3 of the System V ABI, IA32 Supplement.

7.2.2. Floating Point Registers

LSB-conforming applications shall use the floating point registers provided by the architecture in the manner described in Chapter 3 of the System V ABI, IA32 Supplement.

7.2.3. Stack Frame

LSB-conforming applications shall use the stack frame in the manner specified in Chapter 3 of the System V ABI, IA32 Supplement.

7.2.4. Arguments

7.2.4.1. Integral/Pointer

Integral and pointer arguments to functions shall be passed as specified in Chapter 3 of the System V ABI, IA32 Supplement.

7.2.4.2. Floating Point

Floating point arguments to functions shall be passed as specified in Chapter 3 of the System V ABI, IA32 Supplement.

7.2.4.3. Struct and Union Arguments

Structure and union arguments to functions shall be passed as specified in Chapter 3 of the System V ABI, IA32 Supplement.

7.2.4.4. Variable Arguments

As described in Chapter 3 of the System V ABI, IA32 Supplement, LSB-conforming applications using variable argument lists shall use the facilities defined in the header file <stdarg.h> to deal with variable argument lists.

7.2.5. Return Values

7.2.5.1. Void

As described in chapter 3 of System V ABI, IA32 Supplement, functions returning no value need not set any register to any particular value.

7.2.5.2. Integral/Pointer

Functions return scalar values (integer or pointer), shall do so as specified in Chapter 3 of the System V ABI, IA32 Supplement.

7.2.5.3. Floating Point

Functions return floating point values shall do so as specified in Chapter 3 of the System V ABI, IA32 Supplement.

7.2.5.4. Struct and Union

Functions that return a structure or union shall do so as specified in Chapter 3 of the System V ABI, IA32 Supplement.