Design Issues of RISC                                                                                                                                   Print this page
<< Previous |  First     

Large Register file versus cache

The Register file, organized into windows, acts as a small, fast buffer for holding a subset of all variables that are likely to be used the most heavily. From this point of view, the register file acts much like a cache memory.

The question therefore arises as to whether it would be simpler and better to use a cache and a small traditional register file instead of using a large register file. The Table 8.3 compares the characteristics of two approaches.

Table 8.3: The characteristics of the two approaches
  Large Register File Cache
1.
  All local scalars    Recently used local scalars.
2.
  Individual variables    Blocks of memory.
3.
  Compiler-assigned golbal variables

   Recently used global variables.

4.

  Save/Restore based on procedure
  nesting depth

   Save/Restore based on cache
   replacement algorithm.
5.
  Register addressing    Memory addressing.
<< Previous |  First