All books

Professional

Apps About Coach Log in Start reading

Computer Science · Glossary

What is Basic block, leader?

Also known as: basic block · leader

Definition 7.4 University Computer Science — Year 3 · Chapter 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.
Read in context →