Difference between cache memory and register

cachecomputer-architecture

What is the difference between cache memory and registers?I know them by definition but why do we need the other when we have any one of them?

Best Answer

Registers are:

  • Few in number (usually less than 32)
  • Limited in size (32, 64, 80, 128 bits)
  • The only things most processors can operate on directly (although x86/x86-64 blurs this a bit)

Cache is:

  • Extant (32kB+)
  • Larger in quanta (512 bytes or more)
  • Not directly accessible for operations (just a pool between the CPU and main store)
Related Question