0
how is address of verable saved?
the compiler of this software described the integer address as "0x7ffd3f7a07fc". the compiler of "visual studio" on x86 described as "00cffba8". and on x64 as "000000e9e9aff804. the question is, how much memory does every sequence take, and how is divided? and how does work address for specific bit? thanks.
1 Antwort
+ 1
the operating system loads programs to a random memory location, it even uses virtual memory to map to the physical one.
so the memory location changes every time you run the program unless you disable ASLR (at least on Linux).
for x64 vs x86 it's just the size of the memory address (the register of the CPU size)
each two digits represents a byte.
00 cf fb a8 (8bits x 4 = 32 bit)
00 00 00 e9 e9 af f8 04 (8bits x 8 = 64bits)
you can see how are variables stored by using a debugger like gdb, ollydgb and examine memory.