Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

Commit 93ccb6e

Browse files
JurFalCopilot
andauthored
Update docs/lab/lab3.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent e23d42b commit 93ccb6e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

docs/lab/lab3.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,8 @@ funcB:
322322
restore()
323323
```
324324

325-
**Problem 4.4** 假如变量 x 被存放在栈帧上,在 restore 操作后,x 的值为__;假如变量 x 被存放在寄存器上,在 restore 操作后,x 的值为__
325+
**Problem 4.4** 请在下划线处填写你的答案(Fill in the blanks below):
326+
假如变量 x 被存放在栈帧上,在 restore 操作后,x 的值为 ________________ ;假如变量 x 被存放在寄存器上,在 restore 操作后,x 的值为 ________________
326327

327328
由于变量放在寄存器还是内存是由编译器决定的,根据编译器策略的不同,可能会导致同一份代码产生不同的运行结果。为了简化问题,我们可以做出如下限定:在 save 语句后修改过的局部变量,在 restore 操作后都是未知的,让开发者不要在 restore 之后直接使用这些变量的值。
328329

0 commit comments

Comments
 (0)