Binary Can';我不明白虚拟地址是如何转换成二进制形式的
这是我的操作系统教科书中的一个问答: 问题:Binary Can';我不明白虚拟地址是如何转换成二进制形式的,binary,operating-system,virtual-address-space,Binary,Operating System,Virtual Address Space,这是我的操作系统教科书中的一个问答: 问题: A certain computer provides its users with a virtual-memory space of 232 bytes. The computer has 218 bytes of physical memory. The virtual memory is implemented by paging, and the page size is 4096 bytes. A user process gener
A certain computer provides its users with a virtual-memory space of 232 bytes.
The computer has 218 bytes of physical memory. The virtual memory is implemented by paging,
and the page size is 4096 bytes. A user process generates the virtual address 11123456.
Explain how the system establishes the corresponding physical location.
Distinguish between software and hardware operations.
答复:
The virtual address in binary form is
0001 0001 0001 0010 0011 0100 0101 0110
当我将“11123456”插入一个十进制到二进制的转换器(如这里:)时,结果是:1010100111011100000000
这与书中的答案不同
另外,当我使用如下方法手动转换时:
我仍然得到一些不同的东西
我只是对虚拟地址如何转换成二进制形式感到困惑
谢谢 你认为呢
11123456
是一个十进制数,但它不是。数字的计算机表示法是二进制、八进制或十六进制。在本例中是十六进制。如果将上述数字从十六进制形式转换为二进制形式,则会得到以下结果:
0001 0001 0010 0011 0100 0101 0110
说明:
Hexadecimal -> Binary
1 -> 0001
2 -> 0010
3 -> 0011
4 -> 0100
5 -> 0101
6 -> 0110
...