
A deferred exception (also called precise or delayed exception ) is an exception detected during instruction execution but reported later , allowing the processor to maintain precise...
A deferred exception (also called precise or delayed exception) is an exception detected during instruction execution but reported later, allowing the processor to maintain precise program state.
The processor continues executing instructions after detecting a potential exception but delays handling it until a safe point where the program state reflects a sequential execution.
To ensure precise exceptions, meaning:
Important for pipelines and out-of-order execution, where multiple instructions are in flight.
Consider a pipeline executing instructions:
I1: R1 = A + B
I2: R2 = C / D <- division by zero occurs
I3: R3 = R1 + R2
Without deferred exceptions: Exception may occur immediately, leaving I1 complete but I3 partially executed → imprecise state.
With deferred exceptions:
Key idea: The program behaves as if instructions executed sequentially, even in a pipelined or out-of-order processor.
Predicated execution (or conditional execution) is a technique where instructions are executed conditionally based on a Boolean predicate, rather than using explicit branches.
Each instruction has an associated predicate (true/false); the instruction only updates state if the predicate is true.
Consider a conditional block:
if (x > 0) {
A = B + C;
} else {
D = E + F;
}
p1 = (x > 0) ; predicate
A = B + C if p1
D = E + F if !p1
| Feature | Deferred Exceptions | Predicated Execution |
|---|---|---|
| Purpose | Ensure precise exception reporting | Reduce branches and control hazards |
| When applied | During exceptions in pipelines | During normal instruction execution |
| Control flow effect | Postpones exception handling | Conditionally executes instructions |
| Hardware support | Reorder buffer, pipeline tracking | Predicate registers |
| Benefit | Maintains sequential program correctness | Increases ILP, reduces stalls |
Open this section to view and download past papers
Click on Show Past Papers to load available exam papers.