为什么32位操作系统支持4 GB的RAM? [英] Why does a 32-bit OS support 4 GB of RAM?

查看:227
本文介绍了为什么32位操作系统支持4 GB的RAM?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只需阅读关于OS的纯正课程中的一些笔记

Just reading some notes in a purdue lecture about OSs, and it says:

程序将内存视为数组 从地址0到2 ^ 32-1(0到 4GB-1)

A program sees memory as an array of bytes that goes from address 0 to 2^32-1 (0 to 4GB-1)

为什么要使用4 GB?

Why 4 GB?

推荐答案

因为32位能够表示最多2 32 的数字-1 = 4294967295 = 4 GiB-1并因此寻址到2 32 个单独的字节,则为4 GiB.

Because 32 bits are able to represent numbers up to 232 − 1 = 4294967295 = 4 GiB − 1 and therefore address up to 232 individual bytes which would be 4 GiB then.

不过,有一些方法可以避免这种情况.例如,即使使用32位操作系统,也可以使用 PAE .但是,从历史上看,它最常在服务器上使用.另外,非服务器Windows SKU不支持它.不过,考虑到64位CPU,操作系统和驱动程序的支持已司空见惯,到目前为止,所有这些都无济于事.

There are ways to circumvent that, though. For example using PAE even a 32-bit operating system can support more memory. Historically this has most commonly been used on servers, though. Also, the non-server Windows SKUs don't support it. By now all that is moot, though, given that 64-bit CPUs, OSes and driver support are commonplace.

这篇关于为什么32位操作系统支持4 GB的RAM?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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