全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Basic block, leader?

又称: basic block · leader

Definition 7.4 University Computer Science — Year 3 · 第 7 章 — Intermediate Code and Code Generation

A basic block is a maximal sequence of consecutive instructions that control can enter only at the first and leave only at the last. A leader is the first instruction of a block: the first instruction of the function, every label, and every instruction that follows a jump, a branch or a return.

The control-flow graph of fib, from . The dashed blocks B3 and B6 have no predecessor: they are the jump that follows the then branch and the return added at the end of every function, and both follow a return, so no path from the entry reaches them.
The control-flow graph of fib, from Output 7.3. The dashed blocks B3 and B6 have no predecessor: they are the jump that follows the then branch and the return added at the end of every function, and both follow a return, so no path from the entry reaches them.
在原文中阅读 →