简体   繁体   English

处理虚拟地址空间

[英]process virtual address space

I am reading some text about about the virtual address space of a process and it says that 我正在阅读一些有关进程的虚拟地址空间的文字,它说

If we have virtual address that are 32 bits long, the virtual address space of the process can be up to 4 GB. 如果我们具有32位长的虚拟地址,则该进程的虚拟地址空间最多可为4 GB。

This may be a silly question but how is 4 GB calculated? 这可能是一个愚蠢的问题,但是如何计算4 GB? How do you work it out from 32 bits? 您如何用32位计算出来?

2 to the power of 32 is what gives you 4 GB. 2到32的幂就是4 GB的大小。 So with 32 bits, you can refer a memory area of up to 4 Giga bytes of addresses. 因此,对于32位,您可以引用最多4 Giga字节地址的存储区。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM