X-Ref Target - Figure 4-1
High Memory
SP
Low Memory
Calling Convention
The caller function passes parameters to the callee function using either the registers (R5
through R10) or on its own stack frame. The callee uses the stack area of the caller to store
the parameters passed to the callee.
Refer to
Figure
R10 or on the stack frame allocated for Func 1.
If Func 2 has more than six integer parameters, the first six parameters can be passed in
registers R5 through R10, whereas all subsequent parameters must be passed on the stack
frame allocated for Func 1, starting at offset SP + 28.
MicroBlaze Processor Reference Guide
UG984 (v2016.2) June 8, 2016
UG984 (v2016.1) April 6, 2016
Func 1
Func 1
Func 2
SP
Figure 4-1: Stack Frame
4-1. The parameters for Func 2 are stored either in the registers R5 through
www.xilinx.com
Chapter 4: MicroBlaze Application Binary Interface
Func 1
Func 2
SP
Func 3
SP
Func 1
Func 2
173
Send Feedback