开发者

memory copy from void*

开发者 https://www.devze.com 2023-03-02 02:24 出处:网络
I have following code, char * segbase_char = (char*开发者_运维技巧)segbase; As debugged in gdb, it prints

I have following code,

char * segbase_char = (char*开发者_运维技巧)segbase; 

As debugged in gdb, it prints

segbase_char = 0x80e2da8
segbase = 0xb7ffd000

Any ideas?


It is possible that optimisation has resulted in code being moved around, such that the load of segbase_char has been delayed. Try compiling with a lower level of optimisation enabled.

0

精彩评论

暂无评论...
验证码 换一张
取 消