9.5.5ab.htm
来自「建立《编译原理网络课程》的目的不仅使学生掌握构造编译程序的原理和技术」· HTM 代码 · 共 56 行
HTM
56 行
<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='9.5.5.htm'" ></td>
<td>
<img src="../images/next.gif" onmouseover="javascript:style.cursor='hand'" onclick="vbscript:window.location.href='9.5.5b.htm'" ></img></td>
</tr>
</table>
<br><br>
<table>
<tr>
<td class="content">
<p>
<p><font class = "example"> 计算图9.27(2)(b)的in和out </font></p>
<p><span style="FONT-SIZE: large">
<img border="0" src="images/9_25_2.gif"></span></p>
<p><font size="4" color="#FF0000">in[S<sub>1</sub>]=in[S]</font>
</p>
解析:根据in[S<sub>1</sub>]=in[s]和out[s]=gen[s]∪(in[s]-kill[s]),先算出out(S<sub>1</sub>),它做为in(S<sub>2</sub>),再迭代一次,计算出out(S<sub>2</sub>)。
</font>
</p>
</table>
<hr size=2 width=90% align=center color=red><br>
<table>
<tr>
<td class="content">
<p>
<p><font class = "example"> 计算图9.27(2)(c)的in和out </font></p>
<p><span style="FONT-SIZE: large">
<img border="0" src="images/9_25_3.gif">
<p><font size="4" color="#FF0000">in[S<sub>1</sub>]=in[S<sub>2</sub>]=in[S]</font></b>
<p><font size="4" color="#FF0000">out[S]=out[S<sub>1</sub>]∪out[S<sub>2</sub>]</font>
</p>
<p><font size="3" >解析:根据in[s],先计算出in[S<sub>1</sub>]和in[S<sub>2</sub>],然后计算出out[S<sub>1</sub>]和out[S<sub>2</sub>],最后,根据out[s]=out[S<sub>1</sub>]∪out[S<sub>2</sub>],计算出out[s]。
</font></p>
</table>
<br>
<table align=right width=300>
<tr>
<td><img src="../images/previous.gif" onmouseover="javascript:style.cursor='hand'" onclick="vbscript:window.location.href='9.5.5.htm'" ></td>
<td>
<img src="../images/next.gif" onmouseover="javascript:style.cursor='hand'" onclick="vbscript:window.location.href='9.5.5b.htm'" ></img></td>
</tr>
</table>
</BODY>
<html><script language="JavaScript">
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?