工具,以确定在C / C ++ code内存泄漏 [英] tools to determine memory leak in a c/c++ code

查看:135
本文介绍了工具,以确定在C / C ++ code内存泄漏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在UNIX环境中,在那里它可以很容易地分析code和何况还有在code的某些部分内存泄露的机会的工具。
HPUX / AIX / Solaris上

On the unix environment, are there any tools which can easily analyse the code and mention there is a chance of memory leakage in certain sections of the code. HPUX/AIX/Solaris

推荐答案

如果你在谈论静态分析再有就是 cppcheck (以及许多其他)

If you're talking about static analysis then there's cppcheck (among many others)

如果你在谈论一个运行时检查(这将是方式更精确可靠不是静态分析)有的valgrind

If you're talking about a runtime checker (which will be way more accurate and reliable than static analysis) there's valgrind

还有其他的工具负荷可用。看看上面的链接以获取更多信息。

There's loads of other tools available. Check out the links above for more information

净化在AIX上就可以了(虽然它不是免费的。

Purify will work on AIX (though it's not free.

HP有<一个href=\"http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801/?ciid=29080f1bace021100f1bace02110275d6e10RCRD\"相对=nofollow> WDB 调试器,它能够检测内存泄漏。

HP has the wdb debugger, and it's capable of detecting memory leaks.

这篇关于工具,以确定在C / C ++ code内存泄漏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆