Master the fundamental concepts of pipelining & out-of-order execution through this focused micro-challenge.
ILP is the parallelism available within a single thread when instructions do not depend on each other's results. Out-of-order cores rename registers and schedule ready ops across multiple execution units.
cLoading…
The first two adds can execute in parallel; the third waits.
For example, unrolling a loop manually exposes more independent multiplies per iteration, raising IPC until the reorder buffer fills.
For this exercise, you will write microbenchmarks with varying dependency chains and read perf IPC. This task asks you to contrast serial chains against manually unrolled independent bodies on the same CPU.
Keep the relevant datasheet, ISA manual, or architecture textbook chapter open while you implement. When your output disagrees with the reference trace on the same program, the bug is usually a mis-decoded opcode, a stale register read, or a flag bit left unchanged after arithmetic.
For this exercise, you will use those habits while implementing the requirement in the starter code. Microarchitectural product names change across CPU generations, but the control ideas (fetch, bypass, cache lines, vector lanes) stay stable enough to debug from first principles.
Demonstrate instruction-level parallelism.
Requirements:
Three hints are available for this task, revealed one at a time inside the code workspace so you can struggle productively before seeing them.
All starter code and reference implementations are available for your local setup.
View on Github