SH-4 Parameter Passing

If the values are integers or nonscalars, the function passes the first four 32-bit words in registers R4 through R7. It passes single- and double-precision floating-point arguments in the floating-point argument registers FR4 through FR11. The function passes other arguments that do not fit into registers in the argument area on the stack frame.

Declared functions that use variable argument lists (varargs) do not use the floating-point argument registers, but pass arguments using the general-purpose argument registers and the stack.

Functions that are undeclared pass floating-point arguments using both the floating-point registers and the corresponding general-purpose registers and on the stack.

See Also

SH-4 Calling Sequence Specification | SH-4 Registers | SH-4 Stack Frame Layout | SH-4 Return Values | SH-4 Prolog and Epilog | SH-4 pdata Format | SH-4 Assembler Macros | Argument Area | Argument Block | Argument Block Mapping | Floating-Point Parameter Example | SH-4 Functions with Variable Argument Lists

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.