Machine-translated by Google. Questions are authored in English.
Top

Discussion

A register in a CPU is best described as

  • A.a small, very fast storage location inside the processor
  • B.a section of the hard disk reserved for the operating system
  • C.a table of memory addresses held in RAM
  • D.a queue of pending input and output requests

Answer: C

Correct answer: a small, very fast storage location inside the processor

A register is a small storage location built directly into the processor, typically holding one word - 32 or 64 bits - and accessible in a single cycle. Registers are the fastest storage in the machine and sit at the top of the memory hierarchy, above cache, main memory and disk. They are few in number precisely because they are expensive in silicon area, and a large part of what a compiler does is decide which values are worth keeping in them. Several have fixed roles. The program counter holds the address of the next instruction; the instruction register holds the instruction being decoded; the accumulator holds arithmetic results in simpler architectures; the memory address and memory buffer registers interface with memory; the stack pointer tracks the top of the stack; and the status or flag register holds the zero, carry, sign and overflow bits that conditional branches test. General-purpose registers hold whatever the program needs.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.