Length of one cell in our computer's ram [closed]
up vote
-1
down vote
favorite
X64 Processor is the processor which can proceed 64 bit data in one time. This is the general definition that we can be encountered by. Data bus and length of registers are kept as 64-bit so that the processor can accomplish this.
What I am wondering is what length of one Random Access Memory cell is.
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv)
{
int i;
int *array = malloc(4 * sizeof(int));
for(i = 0; i < 4; ++i){
printf("%d ", (array + i));
}
return 0;
}
When we investigate output of this code, we see these addresses or something like that.
20401488 20401492....
4 Byte is distributed on four addresses 20401488-20401491. Each address corresponds to a RAM cell. In this case, one cell has 8bit length. However, this notion can be wrong because these addresses are actually from virtual memory space.
Is there a way to learn length of one RAM cell except for this notion ?
ram cpu
closed as off-topic by user68186, pomsky, karel, Thomas Ward♦ Nov 23 at 16:12
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – user68186, pomsky, karel, Thomas Ward
If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
up vote
-1
down vote
favorite
X64 Processor is the processor which can proceed 64 bit data in one time. This is the general definition that we can be encountered by. Data bus and length of registers are kept as 64-bit so that the processor can accomplish this.
What I am wondering is what length of one Random Access Memory cell is.
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv)
{
int i;
int *array = malloc(4 * sizeof(int));
for(i = 0; i < 4; ++i){
printf("%d ", (array + i));
}
return 0;
}
When we investigate output of this code, we see these addresses or something like that.
20401488 20401492....
4 Byte is distributed on four addresses 20401488-20401491. Each address corresponds to a RAM cell. In this case, one cell has 8bit length. However, this notion can be wrong because these addresses are actually from virtual memory space.
Is there a way to learn length of one RAM cell except for this notion ?
ram cpu
closed as off-topic by user68186, pomsky, karel, Thomas Ward♦ Nov 23 at 16:12
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – user68186, pomsky, karel, Thomas Ward
If this question can be reworded to fit the rules in the help center, please edit the question.
1
This question is about hardware, not Ubuntu.
– user68186
Nov 23 at 14:55
add a comment |
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
X64 Processor is the processor which can proceed 64 bit data in one time. This is the general definition that we can be encountered by. Data bus and length of registers are kept as 64-bit so that the processor can accomplish this.
What I am wondering is what length of one Random Access Memory cell is.
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv)
{
int i;
int *array = malloc(4 * sizeof(int));
for(i = 0; i < 4; ++i){
printf("%d ", (array + i));
}
return 0;
}
When we investigate output of this code, we see these addresses or something like that.
20401488 20401492....
4 Byte is distributed on four addresses 20401488-20401491. Each address corresponds to a RAM cell. In this case, one cell has 8bit length. However, this notion can be wrong because these addresses are actually from virtual memory space.
Is there a way to learn length of one RAM cell except for this notion ?
ram cpu
X64 Processor is the processor which can proceed 64 bit data in one time. This is the general definition that we can be encountered by. Data bus and length of registers are kept as 64-bit so that the processor can accomplish this.
What I am wondering is what length of one Random Access Memory cell is.
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv)
{
int i;
int *array = malloc(4 * sizeof(int));
for(i = 0; i < 4; ++i){
printf("%d ", (array + i));
}
return 0;
}
When we investigate output of this code, we see these addresses or something like that.
20401488 20401492....
4 Byte is distributed on four addresses 20401488-20401491. Each address corresponds to a RAM cell. In this case, one cell has 8bit length. However, this notion can be wrong because these addresses are actually from virtual memory space.
Is there a way to learn length of one RAM cell except for this notion ?
ram cpu
ram cpu
asked Nov 23 at 14:37
Goktug
1136
1136
closed as off-topic by user68186, pomsky, karel, Thomas Ward♦ Nov 23 at 16:12
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – user68186, pomsky, karel, Thomas Ward
If this question can be reworded to fit the rules in the help center, please edit the question.
closed as off-topic by user68186, pomsky, karel, Thomas Ward♦ Nov 23 at 16:12
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – user68186, pomsky, karel, Thomas Ward
If this question can be reworded to fit the rules in the help center, please edit the question.
1
This question is about hardware, not Ubuntu.
– user68186
Nov 23 at 14:55
add a comment |
1
This question is about hardware, not Ubuntu.
– user68186
Nov 23 at 14:55
1
1
This question is about hardware, not Ubuntu.
– user68186
Nov 23 at 14:55
This question is about hardware, not Ubuntu.
– user68186
Nov 23 at 14:55
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
1
This question is about hardware, not Ubuntu.
– user68186
Nov 23 at 14:55