可寻址和可移动的最小存储单元
这是在我之前的问题下收到的两个问题:
(1) 可以移动的最小数据量(N 位)是多少? 仅使用一条机器指令来注册内存?
(2) 当使用该机器指令时,最小的是多少 地址增量可以让您读取接下来的 N 位吗? (不重叠 第一次阅读)
- 我想知道在(1)中是否可以读取的最小数据量 仅使用一条机器指令从内存移动到寄存器 称为字,在(2)中,最小的地址增量让 你读了接下来的 N 位吗? (不与第一次读取重叠)是 称为字节?
在(1)中,是“可以从内存中移动的最小数据量 仅使用一条机器指令进行注册”与
相同- 可以移动到内存的最小数据量 仅使用一条机器指令进行注册,
- 一条机器指令可以传输的最小数据量 操作,并且
- 寄存器的内容?
如果我没记错的话,(1)和(2)中的最小内存单元是 一般不一样。但我想知道为什么,即最小的可寻址 内存不行
- 要在内存和寄存器之间移动的最小内存,以及
- 要操作的最小内存
通过机器指令?能有一些汇编代码来解释吗?
我主要谈论常规计算机体系结构,例如 X86、X86-64,...。
谢谢并问候!
These are two questions that were received under my previous question:
(1) what is the minimum amount of data (N bits) that can be moved from
memory to register using only one machine instruction?(2) When this machine instruction is used, what is the smallest
address increment that lets you read the next N bits? (not overlapping
with the first read)
- I was wondering if in (1) the minimum amount of data that can be
moved from memory to register using only one machine instruction is
called a word, and in (2), the smallest address increment that lets
you read the next N bits? (not overlapping with the first read) is
called a byte? In (1), is "the minimum amount of data that can be moved from memory
to register using only one machine instruction" same as- the minimum amount of data that can be moved to memory from
register using only one machine instruction, - the minimum amount of data that one machine instruction can
operate on, and - the content of a register?
- the minimum amount of data that can be moved to memory from
If I am not wrong, the minimum memory units in (1) and in (2) are
generally not the same. But I wonder why, i.e., how the smallest addressable
memory is not- the smallest memory to be moved between memory and register, and
- the smallest memory to be operated on
by machine instructions? Can there be some assembly code to explain?
I am mainly talking about regular computer architectures, such as X86, X86-64, ....
Thanks and regards!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
(1)它被称为WORD,你是对的。字大小因 CPU 架构而异,对于大多数现代计算机来说,字可以是 32 位(4 字节)或 64 位(8 字节)。
(2) 大多数现代计算机和 BYTE 可寻址
(1) It is called a WORD, you are correct. Word size varies depending on the CPU architecture, for most modern computers a word can either be 32 bits (4 bytes) or 64 bits (8 bytes).
(2) Most modern computers and BYTE-addressible