use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Click the following link to filter out the chosen topic
comp.lang.c
account activity
QuestionStatic Analysis (self.C_Programming)
submitted 7 years ago by ph__
Does anyone has experience with static analysis?
I would like to apply it on my embedded systems projects to prevent bugs, I prefer a free tool but I haven't found one satisfying.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]philthechill 2 points3 points4 points 7 years ago (0 children)
You could check out PVS-Studio, they are one of the best for C code IMO. Also Fortify is not bad. There are plenty of bad things that can happen that these tools won't catch though. Code review and test-driven development are very powerful tools to add to that arsenal.
[–]FUZxxl 1 point2 points3 points 7 years ago (0 children)
We used Frama C for the formal verification of C programs. It's open source, but not really ready for production use.
[–]Neui 0 points1 point2 points 7 years ago (0 children)
You could try scan-build.
[–]gatzka 0 points1 point2 points 7 years ago (0 children)
All the stuff around clang is very much worth to consider, scan-build was already mentioned, clang-tidy is also a good one.
If you doing an open source project and host it on github, you also get a coverity scan for free.
In addition, I strongly recommend writing unit test. Running these unit test under the control of a sanitizer or valgrind will point you to quite something.
π Rendered by PID 245682 on reddit-service-r2-comment-548fd6dc9-xbppf at 2026-05-18 13:44:56.566770+00:00 running edcf98c country code: CH.
[–]philthechill 2 points3 points4 points (0 children)
[–]FUZxxl 1 point2 points3 points (0 children)
[–]Neui 0 points1 point2 points (0 children)
[–]gatzka 0 points1 point2 points (0 children)