forked from cs107e/cs107e.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstack_makearray.html
100 lines (100 loc) · 4.51 KB
/
stack_makearray.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<html>
<style type='text/css'>
table
{ font-family: Inconsolata, Consolas, Menlo, monospace;
font-size: 9pt;
border-collapse: collapse;
}
th {
padding: 4px;
margin: 0;
background-color: #cccccc;
border-bottom: 1px black solid;
}
th:nth-child(5) {
text-align: left;
}
td {
padding: 1px 10px 1px 10px;
margin: 0;
}
tr.gap td {
height: 30px;
background: linear-gradient(left, white 30%, #8b0 70%);
}
tr.gap td:nth-child(3) {
background: linear-gradient(gray, white, gray);
}
td:nth-child(2) {
text-align: right;
padding-right: 2px;
}
td:nth-child(3) {
border: 1px solid black;
}
td:nth-child(4) {
font-style: italic;
}
td:nth-child(1) {
font-weight: bold;
text-align: right;
padding-right: 0px;
}
tr.stackframe1line td:nth-child(4), tr.stackframe2line td:nth-child(4), tr.stackframe3line td:nth-child(4), tr.stackframe4line td:nth-child(4) {
border-top: 1px solid black;
}
tr.stackframe2 td:nth-child(3), tr.stackframe2line td:nth-child(3) {
background-color:#ffccff;
}
tr.stackframe3 td:nth-child(3), tr.stackframe3line td:nth-child(3) {
background-color:#ccffcc;
}
tr.stackframe1 td:nth-child(3), tr.stackframe1line td:nth-child(3) {
background-color:#ccffff;
}
tr.stackframe4 td:nth-child(3), tr.stackframe4line td:nth-child(3) {
background-color:#ffffcc;
}
tr.stack td:nth-child(3), tr.stackline td:nth-child(3) {
background-color:#FFFF66;
}
tr.bss td:nth-child(3) {
background-color:#66CCFF;
}
tr.rodata td:nth-child(3) {
background-color:#66FF66;
}
tr.data td:nth-child(3){
background-color:#FF6666;
}
tr.text td:nth-child(3) {
background-color:#ffcc99;
}
</style>
<tt>Diagram of simple.elf, stopped in abs (simple.c:5)</tt>
<table><tr><th> </th><th>Address</th><th>Contents</th><th> </th><th>decoded</th></tr>
<tr class=stackframe2line><td></td><td>[0x7fffffc]</td><td>00 00 81 30</td><td>saved pc</td><td>_cstart frame</td></tr>
<tr class=stackframe2><td></td><td>[0x7fffff8]</td><td>00 00 80 0c</td><td>saved lr</td><td></td></tr>
<tr class=stackframe2><td></td><td>[0x7fffff4]</td><td>08 00 00 00</td><td>saved sp</td><td></td></tr>
<tr class=stackframe2><td></td><td>[0x7fffff0]</td><td>00 00 00 00</td><td>saved fp</td><td></td></tr>
<tr class=stackframe3line><td></td><td>[0x7ffffec]</td><td>00 00 80 f0</td><td>saved pc</td><td>main frame</td></tr>
<tr class=stackframe3><td></td><td>[0x7ffffe8]</td><td>00 00 81 54</td><td>saved lr</td><td></td></tr>
<tr class=stackframe3><td></td><td>[0x7ffffe4]</td><td>07 ff ff f0</td><td>saved sp</td><td></td></tr>
<tr class=stackframe3><td></td><td>[0x7ffffe0]</td><td>07 ff ff fc</td><td>saved fp</td><td></td></tr>
<tr class=stackframe3><td></td><td>[0x7ffffdc]</td><td>00 00 00 4a</td><td>saved r5</td><td></td></tr>
<tr class=stackframe3><td></td><td>[0x7ffffd8]</td><td>00 00 00 01</td><td>saved r4</td><td></td></tr>
<tr class=stackframe4line><td></td><td>[0x7ffffd4]</td><td>00 00 80 74</td><td>saved pc</td><td>make_array frame</td></tr>
<tr class=stackframe4><td></td><td>[0x7ffffd0]</td><td>00 00 81 10</td><td>saved lr</td><td></td></tr>
<tr class=stackframe4><td></td><td>[0x7ffffcc]</td><td>07 ff ff d8</td><td>saved sp</td><td></td></tr>
<tr class=stackframe4><td></td><td>[0x7ffffc8]</td><td>07 ff ff ec</td><td>saved fp</td><td></td></tr>
<tr class=stackframe4><td></td><td>[0x7ffffc4]</td><td>00 00 00 0b</td><td></td><td></td></tr>
<tr class=stackframe4><td></td><td>[0x7ffffc0]</td><td>00 00 00 09</td><td></td><td></td></tr>
<tr class=stackframe4><td></td><td>[0x7ffffbc]</td><td>00 00 00 07</td><td></td><td></td></tr>
<tr class=stackframe4><td></td><td>[0x7ffffb8]</td><td>00 00 00 05</td><td></td><td></td></tr>
<tr class=stackframe4><td></td><td>[0x7ffffb4]</td><td>00 00 00 03</td><td></td><td></td></tr>
<tr class=stackframe4><td></td><td>[0x7ffffb0]</td><td>00 00 00 01</td><td></td><td></td></tr>
<tr class=stackframe1line><td>fp =></td><td>[0x7ffffac]</td><td>00 00 80 1c</td><td>saved pc</td><td>abs frame</td></tr>
<tr class=stackframe1><td></td><td>[0x7ffffa8]</td><td>00 00 80 b8</td><td>saved lr</td><td></td></tr>
<tr class=stackframe1><td></td><td>[0x7ffffa4]</td><td>07 ff ff b0</td><td>saved sp</td><td></td></tr>
<tr class=stackframe1><td>sp =></td><td>[0x7ffffa0]</td><td>07 ff ff d4</td><td>saved fp</td><td></td></tr>
</table></html>