How does a computer use just a few registers?

后端 未结 7 1704
盖世英雄少女心
盖世英雄少女心 2021-02-07 13:18

I know a little about assembly, and that there are 4 or 8 or so general purpose registers. How do all the programs on a computer work with just that amount of registers, especia

7条回答
  •  暖寄归人
    2021-02-07 13:24

    you have to realize that thousands to millions of assembly instructions get executed for even simple things. Those registers are getting their values swapped often.

提交回复
热议问题