Click here to Skip to main content
14,335,083 members
Rate this:
Please Sign up or sign in to vote.
Hello, I want to know if there is a really good (yet free) software tool which can analyse my C code (which i have written based on PIC and 8051/52 controllers), can find possible coding mistakes and also check MISRA Compliance...


What I have tried:

I know about PC_LINT, LINT, SPLINT..
but never used them..do these fullfuil these requirements and if they are free and can also check MISRA_C compliance?
Posted
Updated 9-Mar-18 4:53am

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

You wont find a good and free code analysis tool. Normally code analysis is included in the IDE in which you are programming.

The best way of avoiding bugs is to have some clear, simple and plain program flow. The parameter should be checked at input in your code (like when data is read from memory).

A very helpful step is always some peer review. When your peer understands your code than the controller may also be fine with it.

No code analysis will eliminate the bugs your program - for that you need to write some test functions with (known) edge cases like (-1, 0, "") or other random input. Fuzzing is also an option but it is a profi tool which need a lot of preparement.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100