📄 7.1.1.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='7.0b.htm'"></td>
<td><img src="../images/next.gif" onmouseover="javascript:style.cursor='hand'"
onclick="vbscript:window.location.href='7.1.1b.htm'"></td>
</tr>
</table>
<br><br>
<center><font class="title1">第七章 中间代码生成</font><br></center>
<p align="left"><br>
<font class="title2"><b>7.1 中间语言</b></font> </p>
<table>
<tr>
<td> </td>
<td class="content">
<p>语法树和后缀式是我们介绍过的两种源程序中间表示,或说两种内部形式表示。本章我们将使用的中间表示称为三地址代码表示。我们可以把语法树和后缀式表示译为三地址代码表示,也可以直接采用三地址中间代码表示。为一般程序设计语言结构生成三地址代码的语义规则,与为之构造语法树或后缀式表示的语义规则是类似的。</P>
</td>
</tr>
</table>
<p><br>
</p>
<hr size="2" width="90%" align="center" color="red">
<a name="7.1.1"></a>
<p><br>
<font class="title2"><b>7.1.1 图表示法</b></font> </p>
<table>
<tr>
<td> </td>
<td class="content">
<p>一棵语法树给出了一个源程序的自然的层次结构。一个dag(有向非循环图)给出了相同的信息,而可用较为压缩的形式来表示,因为其中的公共表达式被认为是等同的。如图7.1画出的是赋值语句a:=b*-c+b*-c的语法树和dag。</p>
</td>
</tr>
</table>
<center><img src="7_1.gif" width="570" height="339"><br>
</center>
<table align="right" width="300">
<tr>
<td><img src="../images/previous.gif" onmouseover="javascript:style.cursor='hand'"
onclick="vbscript:window.location.href='7.0b.htm'"></td>
<td><img src="../images/next.gif" onmouseover="javascript:style.cursor='hand'"
onclick="vbscript:window.location.href='7.1.1b.htm'"></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -