Why does a 32-bit OS support 4 GB of RAM?

前端 未结 13 2092
不知归路
不知归路 2020-12-08 04:18

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

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

13条回答
  •  佛祖请我去吃肉
    2020-12-08 05:06

    If you have a 4-bit system, this means the address for each byte is 4 binary digits, the probability of all your address will range from 0000 through 1111 which is 2^4 = 16 (2 because there is either 0 or 1), with four bits it's possible to create 16 different values of zeros and ones, If you have 16 different addr. each represent a byte then you can have a max of 16 bytes

    4-bit system will look like this:

    For a 32-bit system, your max is 2^32 = 4294967292 bytes

提交回复
热议问题