转储浮点数内存表示的实用程序?
我正在寻找一个实用程序,可以转储各种数字类型如何存储在 RAM 中。它很容易编写,但如果有一个现成的工具可以实现这一点,那就太好了。
希望它也能采用字节序。
语法可能是这样的:
hex uint32 big
例如
hex float big 0.012
将显示
0xa6 0x9b 0x44 0x3c
或以完全相反的顺序:-)
编辑:我正在寻找一个通用工具,希望基于 CLI。调试器不处理字节顺序。
谢谢,
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. debugger doesn't handle endianess.
Thanks,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Visual Studio 可以选择直接查看内存。调试时,转到“调试”->“调试”窗口 ->记忆。然后,您可以粘贴要检查的变量的地址并查看这些位。
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.