General rules concerning return values and the areas for setting return values are described.
A return value is converted to the data type returned by the function.
The return value of a function is written to either a register or memory depending on its type. Refer to Table 9.3 for the relationship between the type and the setting area of the return value.
When a function return value is to be written to memory, the return value is written to the area indicated by the return value address. The caller must allocate the return value setting area in addition to the parameter area, and must set the address of the return value setting area in R15 before calling the function. |