Skip to content

Commit d4e1098

Browse files
Update p4-lab1.md
1 parent 3aa00ad commit d4e1098

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lec2/p4-lab1.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,8 @@ ret| jalr x0, x1, 0 (jalr rd, rs1, imm)|返回
508508
#### RISC-V函数调用约定:栈帧
509509

510510
**栈帧(Stack Frames)**
511+
*sp(stack pointer) 栈指针:指向栈顶
512+
*fp(frame pointer) 帧指针:指向基址
511513
```
512514
return address *
513515
previous fp
@@ -520,7 +522,7 @@ saved registers
520522
local variables
521523
… sp register
522524
```
523-
![bg right:50% 180%](figs/stack-frame.png)
525+
![bg right:42% 180%](figs/stack-frame.png)
524526

525527

526528

0 commit comments

Comments
 (0)