Ask your own question, for FREE!
Computer Science 14 Online
OpenStudy (anonymous):

question

OpenStudy (anonymous):

OpenStudy (anonymous):

why integer fills firstly xxxb54 adress, it doesnt have to start from xxxb50?

OpenStudy (anonymous):

integers are 4 bytes long (on your platform at least).

OpenStudy (llib_xoc):

An aside: often, especially on RISC machines like ARM or PPC, a value must be stored at an address that is evenly divisible by its length, or a bus error or segmentation fault will occur. In your case, since the addresses are all divisible by 4, agdgdgdgwngo has guessed that your compiler is storing integers as 4-byte numbers. Even on the Pentium, which can fetch/store on any byte boundary, many compilers store 4-byte values on a 4-byte address because load/stores are faster that way.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!