7.2. Function Calling Sequence

LSB-conforming applications shall use the function calling sequence as defined in Chapter 3, Section "Function Calling Sequence" of the System V Application Binary Interface PowerPC™ Processor Supplement.

7.2.1. CPU Registers

LSB-conforming applications shall use only the registers described in Chapter 3, Section "Function Calling Sequence", Subsection "Registers" of the System V Application Binary Interface PowerPC™ Processor Supplement.

7.2.2. Floating Point Registers

LSB-conforming applications shall use only the registers described in Chapter 3, Section "Function Calling Sequence", Subsection "Registers" of the System V Application Binary Interface PowerPC™ Processor Supplement.

7.2.3. Stack Frame

LSB-conforming applications shall use stack frames as described in Chapter 3, Section "Function Calling Sequence", Subsection "The Stack Frame" of the System V Application Binary Interface PowerPC™ Processor Supplement.

7.2.4. Arguments

LSB-conforming applications shall pass parameters to functions as described in Chapter 3, Section "Function Calling Sequence", Subsection "Parameter Passing" of the System V Application Binary Interface PowerPC™ Processor Supplement.

7.2.5. Return Values

LSB-conforming applications shall not return structures or unions in registers as described in Chapter 3, Section "Function Calling Sequence", Subsection "Return Values" of System V Application Binary Interface PowerPC™ Processor Supplement. Instead they must use the alternative method of passing the address of a buffer in a register as shown in the same section.