What is the relationship between memory size and address space?

  • Thread starter Thread starter fireflies
  • Start date Start date
  • Tags Tags
    Space
Click For Summary
Address space refers to the total number of unique memory locations that can be accessed by a computer. For instance, a memory size of 64KB allows for addresses ranging from 0 to 65535, derived from the binary representation of 16 bits. The discussion includes examples illustrating how to calculate the number of bits needed to address memory, such as 25 bits for 32MB and 24 bits for 128MB with an 8-byte word size. The concept of a "word" in this context refers to the standard unit of data used by a particular processor architecture. Understanding these calculations is essential for grasping how memory addressing works in computing.
fireflies
Messages
210
Reaction score
13
Address space is the total number of identifiable locations in memory. I just learned that line. What does that mean elaborately?

like it is said, a memory with 64KB and a word size of 1 byte has an address space ranging from 0 to 65535. How that came from? And why ranging? because I got two other examples saying exact adresses?

the examples are:
1) A computer has 32 MB memory. How many bits are needed to address any single byte in memory?
Solution: 25 bits
2) A computer has 128 MB memory. Each word (what is the word elaborately?) is 8 byte. how many bits are needed to address single word? (Can you please make me understand tge question and the calculation?)
Solution: 24 bits
 

Attachments

  • 1469601858796.jpg
    1469601858796.jpg
    36.6 KB · Views: 557
Technology news on Phys.org
A binary number with ##n## bits can take on ##2^n## different values.

In IT, the prefix K means ##2^{10}##, which is 1024 in decimal notation. So 64 KB = 65536. That is also ##2^{16}##. Older computers had 16 bits for addresses, in that way they could form 65536 different addresses.

The examples are exercises for you, not for PF. So you first should make your own attempt and post :smile:. Don't worry, help will surely come your way.
 
  • Like
Likes fireflies
IThanks for helping..

I just don't understand this part of the examples-

How many bits are needed to address any single word in the memory.. and the solution done with log base 2
 
BvU said:
A binary number with ##n## bits can take on ##2^n## different values.
.

I think I got the point :) Thanks you
 
I tried a web search "the loss of programming ", and found an article saying that all aspects of writing, developing, and testing software programs will one day all be handled through artificial intelligence. One must wonder then, who is responsible. WHO is responsible for any problems, bugs, deficiencies, or whatever malfunctions which the programs make their users endure? Things may work wrong however the "wrong" happens. AI needs to fix the problems for the users. Any way to...

Similar threads

Replies
2
Views
2K
Replies
15
Views
3K
  • · Replies 32 ·
2
Replies
32
Views
2K
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
6
Views
4K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 7 ·
Replies
7
Views
4K