Which tool for code analysis is the best for complex C programs?
I use GCC debugger with Code Blocks 13.12
Thanks for replies.
There is no one best.
First, turn on lots of extra warnings/errors in GCC, and fix them all.
-pedantic-errors, and so on. Have a look through the list
Then, get the Clang/LLVM C compiler, and rebuild your code with that, similarly with lots of errors and warnings turned on. Fix them all.
Never turn off all these warnings and errors.
Then, run the clang static analyzer on your code http://clang-analyzer.llvm.org/
Then, if you're not using OS specific libraries, repeat all the above steps on a different operating system.
These are all easy and free ways to significantly improve your code, and they will catch a large percentage of the worst problems. Beyond this, the field expands, and once you have taken these easy, free steps, then look further.
You should also do at least some dynamic analysis of your code. Run it under valgrind on Linux. This will flag up significant memory errors you might be making.
Edited 1 Year Ago by Moschops
Hi I'm having a problem implementing a mini shopping cart drop down in the header to show the user all the products they have in their shopping cart. It seems the only solution for this is Ajax, and I've looked all over and can't find anything that I could possibly ...
Hello All ...
Iam Getting An Error With try to excecute the stored procedure .
I have Have Sql database , the stored procedure like so :
USE [MPRS] GO /****** Object: StoredProcedure [dbo].[Search_Licenses_By_Number] Script Date: 26-Nov-16 8:06:52 AM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER PROCEDURE ...
Help! I want to create a java program that finds the highest even integer among the values entered by the user. Stop asking values when a value less than 1 have been entered. If no even integer is entered, display "No Even Integer"
Here is the sample output that I ...