我是否正确阅读虚拟地址?
为我提供了一个具有12位虚拟广告物理地址和256个字节页面的系统的页面表。
假设我得到了一个读取0x3e5的虚拟地址(十六进制)。
我是通过说第一个十六进制是在正确阅读的,在这种情况下,是页码和其他2个十六进制是偏移量吗?
这是因为页面尺寸为256 bytes,即2^8,这意味着8位适用于页面大小。
I have been given a page table for a system with 12-bit virtual ad physical addresses and 256-byte pages.
Say I am given an virtual address (in hexadecimal) that reads 0x3E5.
Am I reading this correctly by saying the first hexadecimal, in this case 3, is the page number and the other 2 hexadecimals are the offset?
This because the page sizes, 256-bytes, which is 2^8, meaning 8 bits are for the page size.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,但是只有它是一个具有
Yes, but only if it is a system with byte addressing. Otherwise, you would divide the page size (256 bytes) by the word size to determine the number of addresses within a page, log2 of which would give you the number of page offset bits.