C/C++ Run-Time Model and Environment
addressed with the smallest offsets from
located at the farthest end of this area and can be accessed by
-relative addressing.
SP
Outgoing Arguments
Outgoing arguments are located at the top of the stack prior to the
call. Space may be pre-allocated or claimed at the time of each call.
Free Space
Space below SP is normally considered free and unprotected; it is
available for use (in growing the stack) at any time, synchronously
or asynchronously (the latter for interrupt handling). However, on
the ADSP-219x DSPs, the 32 words past the SP are reserved as a
protected temporary space for use within a procedure.
General System-Wide Specifications
Some general specifications that apply to the stacks are:
• The stacks grow down in memory from higher to lower addresses.
• The current frames' "base" is addressed by the
• The first free word in each stack is addressed by the
Data can be pushed onto the stack by executing an instruction like
the following one for the ADSP-219x DSPs:
DM (I4 += M5) = rej.
• The return address of the caller is stored at offsets
the address carried by the current
• The linkage back to the previous stack frame is stored at offset
from the current
1-158
.
FP
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
. The register save area is
FP
register.
FP
-1
, if it is stored on the stack.
FP
for ADSP-219x DSPs
register.
SP
and
from
-2
0
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?
Questions and answers