2

What's the best tool (commercial/open source) you've used for dynamic review/memory analysis of a C++ application?

EDIT: removed 'static' as there is already a great question on this topic (thanks Iulian!)

Community
  • 1
  • 1
Ryan Fernandes
  • 7,732
  • 7
  • 32
  • 52

6 Answers6

7

For dynamic memory analysis definitely Valgrind.

tur1ng
  • 2,696
  • 4
  • 21
  • 31
1

CPPCheck has served me well for a while now. This is for statical analysis.

daramarak
  • 5,856
  • 1
  • 30
  • 50
1

Ryan, if you are on Windows and using MSVC++, then I can recommend BoundsChecker within DevPartner VC++ edition from Micro Focus. It has a feature within its memory tracking analysis called the Memory Resource Viewer. You use this to mark a point in time then look for allocations from that point forward. This plus the traditional heap corruption and other memory checks should help you dynamically track your C++ heap and stack issues. Shameless plug: I work on the DevPartner team. Look for DPS 10.5 with 64-bit support in BoundsChecker to launch February 4, 2011 at http://www.DevPartner.com.

Matt Schuetze
  • 1,072
  • 8
  • 9
0

Microsoft FxCop for static analysis (free). Parasoft Insure ($$$$) or IBM Purify ($$) for dynamic memory analysis.

lisa
  • 76
  • 1
  • 4
0

Valgrind on Linux

Duma on Windows

Prasoon Saurav
  • 85,400
  • 43
  • 231
  • 337
0

For static code review KLOCWORKS is good.

For memory profiling, memory leaks identification, devpartner is a very good one.

ckv
  • 9,567
  • 17
  • 85
  • 137