A basic block is
Answer: C
Correct answer: a maximal sequence of instructions entered only at its first
A basic block is a straight-line sequence with one entry, at the top, and one exit, at the bottom - no branch enters part-way and none leaves except at the end.
That property is what makes it the unit of local optimisation: within a block, execution is guaranteed to run from first instruction to last, so the compiler can reason about the sequence without considering alternative paths. "Maximal" matters, the block being extended until a branch or a label forces a boundary.
Please log in or register to report this question.