寄存器寻址模式VS直接寻址模式 [英] Register addressing mode vs Direct addressing mode

查看:347
本文介绍了寄存器寻址模式VS直接寻址模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了试纸这个问题。它指出,
这给定的寻址模式的比较快?为什么呢?

I encountered this question in a test paper. It stated, Which of the given addressing modes is faster? Why?


  1. 寄存器寻址模式

  2. 直接寻址模式

现在据我寄存器寻址模式应该快如寄存器是在计算机中最快的内存位置。这是正确的答案呢?

Now according to me register addressing mode should be faster as register is the fastest memory location in the computer. Is this the correct answer to it?

请大家帮帮忙。谢谢

推荐答案

寄存器访问是最快的。但是,内存访问能够以最快的速度,如果你要访问的存储器中的数据已经在CPU的数据缓存。

Register accesses are the fastest. However, memory accesses can be as fast if the memory data that you're accessing is already in the CPU's data cache.

这篇关于寄存器寻址模式VS直接寻址模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆