开发者

utility to dump memory representation of float?

开发者 https://www.devze.com 2023-04-09 05:24 出处:网络
I\'m looking for a utility that\'ll dump how a various number types are stored in RAM. It\'s easy to write but if there is a ready tool for achieving this, it\'ll be great.

I'm looking for a utility that'll dump how a various number types are stored in RAM. It's easy to write but if there is a ready tool for achieving this, it'll be great.

Hopefully it'll take of endianess as well.

Syntax could be something like this:

hex uint32 big

E.g.

hex float big 0.012

will show

0xa6 0x9b 0x44 0x3c

or in a complete reversed order :-)

EDIT: I'm looking for a universal tool and hopefully CLI based. debugge开发者_如何学Gor doesn't handle endianess.

Thanks,


Visual Studio has the option to look directly into memory. While debugging, go to Debug -> Windows -> Memory. You can then paste the address of the variables you want to inspect and see the bits.

0

精彩评论

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