views:

102

answers:

4

I've just started learning C and I have a hard time finding bugs, memory leaks and the like. Which are good tools to assist you in finding such things? I heard of Valgrind but are there others?

+1  A: 

For me (on Linux) there are:

tur1ng
+1  A: 

If you're allocating memory dynamically your programs are probably already too complex for it to do a really good job, but you may be amused by the value analysis in Frama-C. Take a look at the tutorialet and move up to the tutorial chapter in the manual if you are still interested.

Pascal Cuoq
+1  A: 

lint is the classic C static analysis tool.

Paul Nathan
+1  A: 

I suspect they cost more than you’re willing to pay, but both Coverity and Klocwork do serious checking for memory leaks, along with lots of other things.

Flash Sheridan