转储浮点数内存表示的实用程序?

发布于 2024-12-07 10:17:40 字数 344 浏览 2 评论 0原文

我正在寻找一个实用程序,可以转储各种数字类型如何存储在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

如痴如狂 2024-12-14 10:17:40

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文