AIX 的 xlC 上的 CRTDBG_MAP_ALLOC 等效项
我正在尝试检测 AIX xlC 编译对象上是否存在内存泄漏。使用 Visual Studio 时,如果我包含 CRTDBG_MAP_ALLOC ,它会给我一些有关内存泄漏的打印输出信息。 xlC有类似的东西可以在调试时使用吗?
I am trying to detect if I have a memory leak on my AIX xlC compiled object. When using visual studio if I included CRTDBG_MAP_ALLOC it would give me some printout information regarding memory leaks. Does xlC have something similar to use when debugging?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您使用基于 malloc() 的堆分配,则可以尝试使用 MALLOCDEBUG。
Parasoft 的 Insure++ 等第三方工具可以提供更深入的分析,但它不是免费的。
让我知道结果如何!
If you're using malloc() based heap allocation, you can try to use MALLOCDEBUG.
Third party tools like Parasoft's Insure++ would give a more indepth analysis but its not free.
Let me know how it turns out!