Memory addresses

Asked

Viewed 143 times

7

My architecture is 32 bits so my memory addresses are 32 bits? because I was using a debug seeing some codes Assembly and arrived in a part where had a loop , and he was picking up byte by byte of a string and each character of string had an address for her example:

0x78650 -> A
0x78651 -> B

As well as the size of my address then is 1 byte or 4 bytes?

  • answer solved your problem? Think you can accept it? See the [tour].

1 answer

8

These are two completely different concepts. The address is 4 bytes (32-bit architecture). The size of the data may vary according to its type. Generally 1 is used to represent a character, but this can also vary. A character is something abstract and can be defined with various sizes and shapes to compose.

Making an analogy, address is the location of where the house is, the data is the house. It always has the same pattern in a city to tell which is the address, but the houses have various sizes and shapes.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.