📄 6.3.2b.htm
字号:
<html>
<head>
<title>编译原理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link type="text/css" rel="stylesheet" href="../css/specification.css">
</head>
<body>
<table align=right width=300>
<tr>
<td><img src="../images/previous.gif" onmouseover="javascript:style.cursor='hand'" onclick="vbscript:window.location.href='6.3.2.htm'" ></td>
<td><img src="../images/next.gif" onmouseover="javascript:style.cursor='hand'" onclick="vbscript:window.location.href='6.3.2_2.htm'"></img></td>
</tr>
</table>
<br><br>
<br>
<center><img src="images/6_11.gif"></center>
<p align=center>图6.11  活动记录向下增长的栈式存储分配</p>
<table><tr><td>    </td>
<td class="content">
<p>
如6.2节所提到的,在一个Pascal的过程中我们可以确定活动记录中局部数据的相对地址。在运行时刻,假设top标记一个活动记录的结尾的位置。那么,在过程的目标代码中的一个局部名字x的地址则可写成dx(top),这表示受限于x的数据可以在该地址(寄存器top之值加上dx)中找到。dx表示x的地址相对于top的偏移量。于是活动记录内诸地址都可以表示作相对于top的偏移量。注意,我们也能以任意一个指向活动记录中的某个确定位置的寄存器r为基准得到偏移量。
</td></tr></table>
<br>
<table align=right width=300>
<tr>
<td><img src="../images/previous.gif" onmouseover="javascript:style.cursor='hand'" onclick="vbscript:window.location.href='6.3.2.htm'" ></td>
<td><img src="../images/next.gif" onmouseover="javascript:style.cursor='hand'" onclick="vbscript:window.location.href='6.3.2_2.htm'"></img></td>
</tr>
</table>
</BODY>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -