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
  • 8,238
  • 7
  • 36
  • 53

6 Answers6

6

For dynamic memory analysis definitely Valgrind.

tur1ng
  • 3,139
  • 5
  • 24
  • 31
1

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

daramarak
  • 6,115
  • 1
  • 31
  • 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,112
  • 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
  • 91,295
  • 49
  • 239
  • 345
0

For static code review KLOCWORKS is good.

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

ckv
  • 10,539
  • 20
  • 100
  • 144