I am confused with so many terminologies that my instructor talks about such as word
,byte addressing
and memory location
.
I was under the impression that for a 32-bit processor
,
it can address upto 2^32 bits
, which is 4.29 X 10^9 bits (NOT BYTES)
.
The way I think now is:
The memory
is like an array
of buckets
each of 1 byte length
.
when we say byte addressing
(which I guess is the most common ones), each char
is 1 byte
and is retrieved from the first bucket (say for example).
for int
the next 4 bytes
are put together in little-endian ordering
to compute the Integer
value.
so each memory, I see it as, 8 bits
or 1 byte
, which can give upto 2^8 locations
, this is far less than what cpu
can address.
There is some very basic mis-understanding here on my part which if some experts can explain in simple terms that a prosepective CS-major student can it in once forever.
I have read various pages including this one on word and here the unit of address resolution
is given as 8b
for ARM
, which adds more to my confusion.