Repository navigation
Computer Architecture 11 glossary
Mugundan edited this page Nov 27, 2026
·
1 revision
Relevant source files
The following references were used as context for generating this wiki page:
- Wikipedia: Computer architecture
- Wikipedia: Memory hierarchy
- Book: Patterson and Hennessy, Computer Organization and Design (Arm edition)
- Book: Hennessy and Patterson, Computer Architecture: A Quantitative Approach
This page puts the whole wiki on one diagram, lists every term used on earlier pages with a one-line meaning, and suggests some self-check questions.
This page covers a one-picture summary, the glossary, self-check questions with answers, and further reading. It introduces no new ideas.
flowchart TD
GOAL["Run programs faster<br/>Time = Instructions × CPI × Clock period"] --> ONE["One instruction stream"]
GOAL --> MANY["Many instruction streams"]
GOAL --> DATA["Many data items"]
GOAL --> MEMW["Waiting for memory"]
ONE --> PIPE["Pipelining<br/>overlap stages"]
PIPE --> HAZ["Hazards: structural, data, control"]
HAZ --> FWD["Forwarding, stalls, reordering"]
HAZ --> BP["Branch prediction, BTB, CSEL"]
ONE --> ILP["ILP: superscalar, out-of-order,<br/>renaming, ROB, speculation"]
MANY --> MC["Multicore<br/>Amdahl's law"]
MANY --> MT["Hardware multithreading<br/>coarse, fine, SMT"]
MC --> ORD["Memory ordering<br/>barriers, acquire/release"]
MC --> COH["Cache coherence<br/>MESI, false sharing"]
DATA --> SIMD["SIMD: Neon, SVE"]
DATA --> GPU["GPU: SIMT, warps"]
MEMW --> CACHE["Caches: lines, sets, AMAT"]
CACHE --> COH
MT --> GPU
| If your program is slow because... | Look at |
|---|---|
| It waits for memory a lot | Caches and Coherence, Multithreading |
| It has many unpredictable branches | Branches and Remedies |
| It is one long chain of dependent operations | ILP |
| It runs on one core while others are idle | Multicore |
| Threads slow each other down | Caches and Coherence (false sharing), Multicore (locks) |
| It does the same arithmetic on big arrays | SIMD and GPUs |
| Multithreaded code works on x86 but fails on Arm | Memory and Ordering |
| Term | Meaning | Page |
|---|---|---|
| Acquire / release | One-way ordering on a load (acquire) or store (release); Arm LDAR / STLR
|
Memory and Ordering |
| ALU | Arithmetic logic unit: adds, compares, does logic | Fundamentals |
| Amdahl's law | Speedup is limited by the serial fraction: 1 / ((1−p) + p/N) | Multicore |
| AMAT | Average memory access time = hit time + miss rate × miss penalty | Caches and Coherence |
| Associativity | How many places (ways) in a cache a line may go | Caches and Coherence |
| Barrier (fence) | Instruction that orders memory accesses; Arm DMB, DSB, ISB
|
Memory and Ordering |
| big.LITTLE | Mixing fast and efficient cores on one chip | Multicore |
| Branch predictor | Hardware that guesses branch direction | Branches and Remedies |
| BTB | Branch target buffer: remembers where branches go | Branches and Remedies |
| Cache line | The unit a cache stores and moves, typically 64 bytes | Caches and Coherence |
| Coherence | Keeping all copies of one address consistent | Caches and Coherence |
| Commit (retire) | Making an instruction's result permanent, in program order | ILP |
| CPI / IPC | Cycles per instruction / instructions per cycle | Fundamentals |
| Critical path | Longest chain of dependent instructions | ILP |
| Divergence | Threads in one GPU warp taking different branch paths | SIMD and GPUs |
| False sharing | Different variables in one cache line causing coherence traffic | Caches and Coherence |
| Forwarding (bypassing) | Sending a result straight to a waiting instruction | Pipelining |
| Hardware thread | A PC plus registers sharing one core's execution units | Multithreading |
| Hazard | Something that stops the next pipeline step: structural, data, control | Pipelining |
| ILP | Instruction-level parallelism: independent instructions run together | ILP |
| ISA | Instruction set architecture: the contract between software and hardware | Overview |
| Lane | One element slot in a SIMD register or GPU warp | SIMD and GPUs |
| Latency / throughput | Time for one job / jobs per unit time | Pipelining |
| Locality | Temporal: reuse soon; spatial: use nearby data | Caches and Coherence |
| MESI | Cache line states: Modified, Exclusive, Shared, Invalid | Caches and Coherence |
| Microarchitecture | How a particular chip implements the ISA | Overview |
| Misprediction penalty | Cycles lost when a branch guess is wrong | Branches and Remedies |
| NUMA | Memory access time depends on which socket owns the memory | Multicore |
| Neon | Arm's fixed 128-bit SIMD extension | SIMD and GPUs |
| Occupancy | How many warps are resident on a GPU compute unit | SIMD and GPUs |
| Out-of-order execution | Running instructions when their inputs are ready, not in program order | ILP |
| Pipeline | Splitting instruction processing into overlapping stages | Pipelining |
| Predicate | A per-lane on/off mask (SVE P registers) |
SIMD and GPUs |
| Program counter (PC) | Address of the next instruction | Fundamentals |
| RAW / WAR / WAW | Read-after-write (true), write-after-read and write-after-write (false) dependences | Pipelining |
| Register renaming | Mapping architectural registers to many physical ones to remove false dependences | ILP |
| ROB | Reorder buffer: tracks program order for in-order commit | ILP |
| Sequential consistency | All cores see one interleaving that respects each core's program order | Memory and Ordering |
| SIMD | Single instruction, multiple data | SIMD and GPUs |
| SIMT | Single instruction, multiple threads: the GPU model | SIMD and GPUs |
| SMT | Simultaneous multithreading: several threads issue in one cycle | Multithreading |
| Speculation | Running instructions before knowing they are needed | ILP |
| Stall (bubble) | A cycle where a pipeline stage does no useful work | Pipelining |
| Store buffer | Queue holding stores before they reach the cache | Memory and Ordering |
| Superscalar | Issuing more than one instruction per cycle | ILP |
| SVE | Arm's Scalable Vector Extension, 128 to 2048 bits | SIMD and GPUs |
| TSO | Total store order: x86's memory model | Memory and Ordering |
| VLIW | Very long instruction word: compiler packs parallel operations | ILP |
| Von Neumann bottleneck | Program and data share one path to memory | Fundamentals |
| Warp / wavefront | Group of GPU threads running in lockstep (32 or 64) | SIMD and GPUs |
| Write-back / write-through | Update memory on eviction / on every store | Caches and Coherence |
- A program runs 1 billion instructions at CPI 2 on a 1 GHz clock. How long does it take? (2 s.) (Fundamentals)
- Why does pipelining not make a single instruction finish sooner? (It improves throughput, not latency.) (Pipelining)
-
LDR X1,[X0]is followed immediately byADD X2,X1,X3. Why does forwarding not remove the stall completely? (The load's data only arrives after MEM.) (Pipelining) - Why does a 2-bit counter mispredict a 10-iteration loop only once per run, when a 1-bit predictor misses twice? (Branches and Remedies)
- 25% of instructions are branches, 4% are mispredicted, the penalty is 20 cycles, base CPI is 1. What is the CPI? (1 + 0.25 × 0.04 × 20 = 1.2.) (Branches and Remedies)
- Which of RAW, WAR and WAW does register renaming remove? (WAR and WAW.) (ILP)
- In the message-passing example, what must the producer and consumer use on Arm? (Store-release and load-acquire, or barriers.) (Memory and Ordering)
- A 64 KB, 8-way cache with 64-byte lines has how many sets? (64 KB / 64 B = 1024 lines; / 8 = 128 sets.) (Caches and Coherence)
- Two threads increment two different counters in one struct and run slower with two cores than with one. Why? (False sharing.) (Caches and Coherence)
- With 80% parallel code, what is the speedup on 8 cores, and the limit? (1 / (0.2 + 0.1) = 3.33; limit 5.) (Multicore)
- Why does SMT never double performance? (Both threads share the same execution units and caches.) (Multithreading)
- Why is
if (threadIdx.x % 2)slow on a GPU butif (blockIdx.x % 2)not? (The first splits every warp; the second sends whole warps one way.) (SIMD and GPUs)
| Resource | Good for |
|---|---|
| Patterson and Hennessy, Computer Organization and Design (Arm edition) | A full beginner course: the material of pages 2-8 in depth |
| Hennessy and Patterson, Computer Architecture: A Quantitative Approach | The next step: ILP, memory hierarchy, multicore, GPUs |
| Arm Learn the architecture guides (developer.arm.com): Memory Systems, Ordering, and Barriers (102336); Introducing Neon (102474); Introduction to SVE (102476) | Arm-specific detail for pages 6, 7 and 10 |
| Arm Architecture Reference Manual for A-profile (DDI 0487) | The definitive rules, for reference rather than reading |
| The Wikipedia articles linked from each page | Quick refreshers and further links |
For how compilers make use of all this, see the Instruction Scheduling wiki and the LLVM IR wiki.
- Computer Architecture Overview
- Fundamentals: CPU, Memory and Instructions
- Pipelining
- Branches and Remedies
- Instruction-Level Parallelism
- Memory and Ordering
- Caches and Coherence
- Multicore
- Multithreading in Hardware
- SIMD and GPUs
- Glossary and Summary
- Hexagon Overview and Processor Properties
- ISA Fundamentals: Packets, Slots and Threads
- Registers
- Instruction Encoding and Mnemonics
- Data, Memory and Control Instructions
- Floating Point, HVX and Alignment
- Caches, MMU and Glossary
- Operating Systems Overview
- Processes
- Threads
- CPU Scheduling
- Synchronization
- Deadlock
- Memory Management
- Virtual Memory
- Files, Storage and I/O
- Kernel and System Calls
- Interview Q&A and Glossary
- C++ for LLVM Development: Overview
- C++ Basics
- Classes and RAII
- Ownership and Move Semantics
- Templates and Lambdas
- LLVM Data Structures (ADT)
- LLVM-Style RTTI: isa, cast, dyn_cast
- Errors, Output and Assertions
- Iterators and Ranges
- Building, Debugging and Exercises
- LLVM IR Overview
- Structure: Modules, Functions, Blocks and Values
- Type System
- Arithmetic, Bitwise and Cast Instructions
- Compare and Select
- Memory: alloca, load, store and getelementptr
- Control Flow: br, switch, ret and call
- SSA and Phi
- Control Flow Graph and Loops
- Dominance, Dominator Tree and Dominance Frontier
- Data-flow Analysis
- Writing an IR Pass
- Common Passes
- Exercises, Tooling and Glossary
- SelectionDAG Overview
- Pipeline, Phases and Traversal Orders
- Core Data Structures
- DAG Construction
- DAG Combiner
- Legalization
- Type Legalization
- Operation and Vector Legalization
- Instruction Selection
- TableGen Pattern Language
- Matcher Interpreter and Folding
- AArch64 Instruction Selection
- Scheduling and MIR Emission
- PHI Node Resolution
- AArch64 Walkthroughs
- Arithmetic and Data Movement
- Memory Instructions
- Control Flow and Calls
- End-to-End Example
- Tooling, Debugging and Extending
- Selector Comparison and Glossary
- Assignments: Build the Toy Backend
- Stage 1: Build Setup
- Stage 2: Target Registration
- Stage 3: TableGen Skeleton
- Stage 4: MC Layer for Assembly Output
- Stage 5: TargetMachine and Subtarget
- Stage 6: TargetLowering, Arguments and Returns
- Stage 7: Instruction Selection and the First Function
- Stage 8: Registers, Copies and Spills
- Stage 9: Frame Lowering
- Stage 10: Memory, Globals and Control Flow
- Stage 11: Calls
- Stage 12: Scheduling Model
- Stage 13: Object Files
- Stage 14: Capstone, a Complete Toy Backend
- Target Bring-up Overview
- Directory Layout, CMake and Registration
- The Target .td File
- TargetMachine and Subtarget
- TargetLowering Setup
- Calling Conventions
- Instructions and Instruction Selection
- Registers and Allocation Hooks
- Frame Lowering
- AsmPrinter and the MC Layer
- Scheduling
- A Minimal Toy Target
- Bring-up Checklist and AArch64 File Map
- Tooling and Glossary
- Calling Conventions Overview
- The CallingConv.td Language
- CCState and CCValAssign
- LowerFormalArguments
- LowerCall
- LowerReturn and CanLowerReturn
- Varargs, byval, sret and swifterror
- Tail Calls and Sibling Calls
- Custom Backend Guide and Checklist
- AArch64 Walkthroughs
- Tooling and Glossary
- Frame Lowering Overview
- MachineFrameInfo
- TargetFrameLowering Hooks
- The PEI Pass
- Callee-Saved Registers and Stack Layout
- Frame Index Elimination and the Register Scavenger
- Shrink Wrapping
- CFI and Unwind Information
- Custom Backend Guide and Checklist
- AArch64 Walkthroughs
- Tooling and Glossary
- MC Layer Overview
- Core Data Structures
- Streamers
- Assembler and Layout
- Fixups and Relocations
- Writing an MC Layer for a Custom Backend
- MCAsmInfo and the Instruction Printer
- Code Emitter
- AsmBackend and Object Writer
- Assembly Parser and Disassembler
- Bring-up Checklist and Common Failures
- Tooling and Glossary
- Register Allocation Overview
- The Register Allocation Pipeline
- Registers, Virtual Registers and Register Classes
- Liveness: Slot Indexes and Live Intervals
- Preparing Code for Allocation
- PHI Elimination and Two-Address Lowering
- Register Coalescer
- Allocation Framework
- The Register Allocators
- Fast Register Allocator
- Basic Register Allocator
- Greedy Register Allocator
- PBQP Register Allocator
- Spilling and Splitting
- Spill Weights and Copy Hints
- The Inline Spiller
- Live Range Splitting
- Rewriting and Post-RA Passes
- Writing Register Allocation Support for a Custom Backend
- Register Definitions in TableGen
- TargetRegisterInfo Hooks
- TargetInstrInfo Hooks
- Pass Pipeline Hooks
- Bring-up Checklist and Common Failures
- AArch64 Walkthroughs
- Tooling and Debugging
- Glossary and Where Do I Look