Saltar al contenido ForoHackers

Computer architecture: start here

Arquitectura de computadoras
#2997 · · Citar · 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

No has iniciado sesión, así que esto se publica como anónimo: no se guarda con ello ninguna cuenta, nombre ni dirección, y no puede llevar enlaces ni imágenes. Inicia sesión o únete para publicar con tu nombre. Los registros de nuestro servidor web guardan la dirección y la hora de cada petición hasta 14 días; para que la tuya no quede en ellos, usa Tor. Para escribir al equipo de forma confidencial, usa el buzón. Firmar como fuente habitual (una clave guardada solo en este navegador)

Enviar tarda unos segundos aquí: tu navegador resuelve antes una prueba de trabajo contra el spam.

Responder