Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. In computing, a
basic block is code that has one entry point (i.e., no code within it is
the destination of a jump instruction), one exit point and no jump
instructions contained within it (i.e., a sequence of instructions which
are all executed if the first one in the sequence is executed). The
start of a basic block may be jumped to from more than one location. The
end of a basic block may be a jump instruction or the statement before
the destination of a jump instruction. Basic blocks are usually the
basic unit to which compiler optimizations are applied. Basic blocks
form the vertices or nodes in a control flow graph. The code may be
source code, assembly code or some other sequence of instructions. More
formally, a sequence of instructions forms a basic block if the
instruction in each position dominates, or always executes before, all
those in later positions, and no other instruction executes between two
instructions in the sequence. This definition is more general than the
intuitive one in some ways. For example, it allows unconditional jumps
to labels not targeted by other jumps.