📄 9.6.4_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='9.6.4.htm'" ></td>
<td>
<img src="../images/next.gif" onmouseover="javascript:style.cursor='hand'" onclick="vbscript:window.location.href='9.6.4.htm'" ></img></td>
</tr>
</table>
<br><br>
<table>
<tr>
<td>    </td>
<td class="content">
<p><font class = "emphasize">算法9.4 活跃变量分析 </font></p>
<p>输入:基本块的def和use都已计算的流图 </p>
<p>输出:out[B],即在流图的每个块B出口的活跃变量集合 </p>
<p>方法:执行图9.33的程序 </p>
<p> <b>for</b> 每个基本块 B <b>do</b> in[B]:=Ф </p>
<p> <b>while</b> 任何一个in有变化 <b>do</b> </p>
<p> <b>for</b> 每个基本块 B
<b>do</b> <b>begin</b> </p>
<p> out[B]=∪ in[S] </p>
<p> S是B的后继 </p>
<p> in[B]:=use[B]∪(out[B]-def[B]) </p>
<p> <b>end</b> </p>
<p> 活跃变量计算</td>
</tr>
</table>
<br>
<p> </p>
<table align=right width=300>
<tr>
<td>
<img src="../images/previous.gif" onmouseover="javascript:style.cursor='hand'" onclick="vbscript:window.location.href='9.6.4.htm'" ></img></td>
<td><img src="../images/next.gif" onmouseover="javascript:style.cursor='hand'" onclick="vbscript:window.location.href='9.6.4.htm'" ></td>
</tr>
</table>
</BODY>
<html><script language="JavaScript">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -