I have a pretty elementary question which is somewhat confusing me. It will be great to get some refresher on this.
Every computer has a word size. The word size is the maximum size of the virtual address space. So if we have lets say a 32 bit word size
, we have a virtual address space that ranges to a max of 2^32 values
. In references it says 2^32 bytes
? Why is the range in bytes.
Also, What I am failing to understand is how 2^32
possible values be a possible address range of 4GB
? So, my confusion stems from the confusion of turning the 32 bit word size
into 4 byte word size
, and then how 4 bytes
, multiplied 2^32
times result in 4GB
.
One way I tried to rationalize it is as follows:
2^32 bits = 2^2(bytes) x 2^10(kilobytes) x 2^10(megabytes) x 2^10(gigabytes)
So successive division of 2^32
by 2^10
results in 2^2 GB
or 4 GB
.
Can somebody point out how the 32-bit word size go to a 4GB page range?
Thanks