sparcstack.ppt
Download
Report
Transcript sparcstack.ppt
SPARC Architecture Stack Structure
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
4
8
12
16
20
24
28
32
36
40
44
48
52
56
60
64
68
72
76
80
84
88
92
…
%fp
%fp
%fp
%fp
%fp
%fp
%fp
%fp
%fp
%fp
%fp
%fp
%fp
%fp
%fp
%fp
%fp
%fp
%fp
%fp
%fp
%fp
%fp
%fp
%fp
…
- 4
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
4
8
12
16
20
24
28
32
36
40
44
48
52
56
60
64
68
72
76
80
84
88
92
Register
window
92 bytes
Current
function’s
stack
frame
Structure pointer
Actual parameters 1 to 6
(Used only when called
function requires its
parameters to be
in memory)
Actual parameters 7, … and
saved floating-point registers
??? bytes
Local variables
Register
window
92 bytes
Calling
function’s
stack
frame
Structure pointer
Formal parameters 1 to 6
(Used only when current
function requires its
parameters to be
in memory)
Formal parameters 7, … and
saved floating-point registers
Copyright © 2001 by Robert M. Dondero, Jr.
%sp
%sp
%sp
%sp
%sp
%sp
%sp
%sp
%sp
%sp
%sp
%sp
%sp
%sp
%sp
%sp
%sp
%sp
%sp
%sp
%sp
%sp
%sp
%sp