⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 6.3.2b.htm

📁 建立《编译原理网络课程》的目的不仅使学生掌握构造编译程序的原理和技术
💻 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&nbsp&nbsp活动记录向下增长的栈式存储分配</p>


<table><tr><td>&nbsp&nbsp&nbsp&nbsp</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 + -