c++ - memory copy from void* -


i have following code,

char * segbase_char = (char*)segbase;  

as debugged in gdb, prints

segbase_char = 0x80e2da8 segbase = 0xb7ffd000 

any ideas?

it possible optimisation has resulted in code being moved around, such load of segbase_char has been delayed. try compiling lower level of optimisation enabled.


Comments