Saltar al contenido ForoHackers

Computer architecture: start here

Arquitectura de computadoras
#491 · Ophuscado · · Denunciar

Computer architecture is the contract between hardware and software, and the design of machines that honour it. It decides what instructions exist, how memory is organised and how fast programs can run. Knowing it explains why some code is fast, why caches matter and what a compiler is really targeting.

Key concepts

  • Instruction set architecture: the visible interface, with registers, instructions, addressing modes and memory model.
  • Memory hierarchy: registers, caches, main memory and storage trade size against speed; locality makes it work.
  • Pipelining: overlapping the stages of many instructions, at the cost of hazards that must be resolved.
  • Parallelism: instruction-level, data-level (SIMD), thread-level and multicore, each with its own limits.
  • Input and output: buses, interrupts and DMA connect the processor to the rest of the machine.

Vocabulary

  • CPI and IPC: cycles per instruction and its inverse; with clock rate they give performance.
  • Cache line: the unit of transfer between cache and memory.
  • RISC and CISC: simple, regular instructions versus richer, variable-length ones.
  • Amdahl's law: the part of a program you cannot speed up bounds the total gain.

What to study, in order

  1. Number representation, binary arithmetic and how a simple ALU adds and compares.
  2. Assembly for one real instruction set; read what a compiler emits for a loop.
  3. A single-cycle processor on paper, then a pipelined one with its hazards.
  4. Caches: simulate one and measure how stride changes the speed of an array walk.
  5. Write a small instruction-set simulator, then compare two designs on the same benchmark.

Related tags

#microarchitecture #digital-design #assembly #performance

Inicia sesión o únete para responder.