Addressing Modes
How an effective address is computed from base, index, scale, displacement and PC, and why the same array access costs a different number of address calculations on x86-64, ARM64 and RISC-V.
How an effective address is computed from base, index, scale, displacement and PC, and why the same array access costs a different number of address calculations on x86-64, ARM64 and RISC-V.
The five layers from technology to system, the three walls that ended scaling, and the numbers every later page inherits.
Read-modify-write instructions and ordering instructions: how C11 memory orders map onto lock prefixes, LDAXR/STLXR, LR/SC and the fences each ISA requires.
How direction and target predictors, BHT, BTB, TAGE, and the return-address stack keep the front end fed.
How a program changes its control flow: flags versus compare-and-branch, PC-relative encodings, and the range limits of x86-64, AArch64 and RISC-V.
The ALU, register file, shifter, multiplier and divider, their delay and area cost, and how they share one clocked path.
How an out-of-order core uses scoreboards, reservation stations, and the wakeup-select loop to hide latency while preserving dataflow semantics.
Synchronous faults and asynchronous interrupts as one control-transfer mechanism: vector tables, privilege switch and the cost of handling an event.
IEEE 754 fields, rounding, special values and the non-associativity that breaks naive comparisons, reductions and parallelism.
Superseded by the Hardware domain; kept while its content moves into the new pages.
Two ways to turn opcodes into control signals: direct combinational decode and a microprogram in a control store, with the latency, area and patchability each buys.
How performance and efficiency cores share one ISA and one coherent domain, what differs inside them, and why the scheduler rather than the silicon decides whether the mix pays off.
Two’s complement ranges, the three overflow semantics, and the Q-format arithmetic that replaces floats in DSP and embedded code.
The ISA as the binary contract between software and silicon: what it fixes, what it leaves to the microarchitecture, and how compatibility survives across generations.
How unrolling, software pipelining, tiling, and interchange expose ILP and locality, and when dependence analysis forbids them.
The three-factor performance equation, how CPI decomposes into stalls, and which metric answers which question.
Splitting one instruction across several clock cycles: intermediate registers, a step sequencer, variable CPI, and the area-for-time trade.
How several cores share LLC slices, a ring or mesh fabric, memory controllers and I/O inside one socket, and how that topology sets the latency and bandwidth a parallel program actually sees.
Overlapping instruction stages: the five-stage schedule, the clock period set by the slowest stage, and the speedup formula that governs every later page.
Structural, data and control hazards, the forwarding and stall rules that resolve them, and the in-order commit a precise exception requires.
Privilege levels as a capability label and virtualization as one more layer under them: rings, exception levels, sensitive instructions and stage-2 translation.
How register renaming removes false dependencies and the reorder buffer restores precise state at commit.
Architectural registers across x86-64, ARM64 and RISC-V, the four operand kinds an instruction can encode, and why constant materialisation and calling conventions follow from register width.
How one physical core interleaves several thread contexts to fill idle issue slots, which state is replicated, which resources stay shared, and why SMT buys throughput instead of latency.
One instruction per clock cycle: the shared combinational path, the load-limited clock period, and why a CPI of one still loses on frequency.
How a core executes past unresolved branches and memory dependencies without exposing speculative state, and why Spectre broke that contract.
Issue width, parallel pipelines and the dependency limits that turn a four-wide machine into an IPC of two or three.
What sits around the cores inside a socket: LLC slices, the ring or mesh, home agents, memory controllers, the I/O complex and the power unit that binds their clocks.
How VLIW and EPIC bundles move scheduling into the compiler, and what that trades away in compatibility and code size.