Intermediate Compilers & Programming Language Theory
Q71 / 100

What is a basic block in compiler analysis?

Correct! Well done.

Incorrect.

The correct answer is A) A maximal straight-line sequence of instructions with one entry point (the first instruction) and one exit point (the last instruction), and no internal jumps or jump targets

A

Correct Answer

A maximal straight-line sequence of instructions with one entry point (the first instruction) and one exit point (the last instruction), and no internal jumps or jump targets

Explanation

Basic blocks are the nodes of a control-flow graph: control enters only at the first instruction and leaves only at the last (a branch or jump). This property lets compilers analyze and optimize execution paths systematically.

Progress
71/100