确定 c/c++ 代码中内存泄漏的工具 [英] tools to determine memory leak in a c/c++ code
问题描述
在unix环境下,有没有什么工具可以方便的分析代码,并提到代码的某些部分可能存在内存泄漏.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.
惠普有 debace0drelw18888888888.com,并且能够检测内存泄漏.
HP has the wdb debugger, and it's capable of detecting memory leaks.
这篇关于确定 c/c++ 代码中内存泄漏的工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!