SDKZSPF LSI, SDKZSPF Datasheet - Page 65

no-image

SDKZSPF

Manufacturer Part Number
SDKZSPF
Description
Manufacturer
LSI
Datasheet

Specifications of SDKZSPF

Lead Free Status / Rohs Status
Supplier Unconfirmed
3.2.5 Run Time Stack
Note that registers that were skipped so that a 32-bit parameter could be
passed can be used later when passing a 16-bit parameter. For example,
a function with prototype:
expects its arguments to be in: r4, r7r6, and r5, respectively.
The C run time stack grows towards lower addresses in memory. The
stack pointer (r12 with sdcc/zdxcc, a7 with zdcc) decrements when
items are pushed on the stack. The initial memory location of the stack
is specified in the initialization file crt0.o.
Table 3.6
Table 3.6
Compiler Conventions
Copyright © 1999-2003 by LSI Logic Corporation. All rights reserved.
high address
low address
void f(int, long, int)
shows the layout of a function’s stack frame.
Stack Frame Layout
Callee saved registers
%rpc
Local variables and temporaries
Outgoing arguments
(The stack allocates enough space to
accommodate any call by the function.)
3-11