C Board  

Go Back   C Board > Community Boards > Tech Board

Reply
 
LinkBack Thread Tools Display Modes
Old 09-17-2009, 02:22 AM   #1
Registered User
 
Join Date: Apr 2007
Posts: 28
Smile MISRA C Checker open source

Hi all,

I am working on a project to create a MISRA C code checker to verify if the code/program is compliant to the MISRA C 2004 rules.

Can someone let me know what are the similar code checkers/tools that are currently available in the market ?

Also, where could I get the source code of these code checkers?
I have no idea on how these code checkers are being developed, so I would like to have a sample of source code of the checker.

Hope to hear from you guys soon.

Thanks!
huwan is offline   Reply With Quote
Old 09-17-2009, 08:53 AM   #2
and the hat of vanishing
 
Salem's Avatar
 
Join Date: Aug 2001
Location: The edge of the known universe
Posts: 21,214
PC-lint/FlexeLint MISRA 1998 C Checking
I only know about this one, but it isn't free (it is very good though).
__________________
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
Up to 8Mb PlusNet broadband from only £5.99 a month!
Salem is offline   Reply With Quote
Old 09-18-2009, 03:39 AM   #3
Registered User
 
Join Date: Apr 2007
Posts: 28
Thanks for your info.

Do you know where could I get the sample source code of such a tool?
huwan is offline   Reply With Quote
Old 09-18-2009, 10:42 AM   #4
and the hat of vanishing
 
Salem's Avatar
 
Join Date: Aug 2001
Location: The edge of the known universe
Posts: 21,214
Splint Home Page

In the style of lint, but not really like it at all in detail (and not MISRA C either).
But you do get source code.
__________________
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
Up to 8Mb PlusNet broadband from only £5.99 a month!
Salem is offline   Reply With Quote
Old 09-29-2009, 05:12 AM   #5
Registered User
 
Join Date: Apr 2007
Posts: 28
Thanks Salem! That really helps!

Does anyone know what are the differences between Klocwork and Misra-C Code checker?since both are also static code checkers.
What are the errors or warnings do not covered by Klocwork but Misra-C tool or vice versa?
Which tool is better?
huwan is offline   Reply With Quote
Old 09-29-2009, 05:59 AM   #6
Rampaging 35 Stone Welsh
 
abachler's Avatar
 
Join Date: Apr 2007
Posts: 2,927
Well, they both fail to discover non-trivial bugs that can only be foun dusing a combination of two other tools -
Attached Images
 
__________________
He is free, you say. Ah! That is his misfortune… These men… [have] the most terrible, the most imperious of masters, that is, need. … They must therefore find someone to hire them, or die of hunger. Is that to be free? - Simon Linguet
abachler is offline   Reply With Quote
Old 09-30-2009, 05:04 AM   #7
Registered User
 
Join Date: Apr 2007
Posts: 28
LOL....you are right!!

but anyway, I am still looking for some opinions and information for the doubts I have in my previous reply. I need these information for my presentation on this Friday.
Could someone please help?
Thank you!!
huwan is offline   Reply With Quote
Old 09-30-2009, 05:12 AM   #8
Registered User
 
Join Date: Apr 2007
Posts: 28
actually I am looking for some strong points to convince my company management to approve my project (creating a MISRA-C code checker).

Currently, we have been using Klocwork as a static code checker in our workplace, so I guess the management would probably question me about the differences between Klocwork and Misra-C checker as well as the benefits/strength of MISRA-C checker over Klocwork.

Without the strong points to convince them, I guess they would not approve my project.

Greatly appreciated if someone could help.
huwan is offline   Reply With Quote
Old 10-27-2009, 08:13 AM   #9
Registered User
 
Join Date: Oct 2009
Posts: 1
MISRA is a Management tool

Someone explained MISRA C as a great way for managers to be able to verify the validity of code, not just the syntax.

By flicking a switch, if the compiler is setup to check for MISRA C, it will generate those errors.

The issue comes down to the need to use a compiler setup for MISRA C. Not only that, but you are bound by a 3rd party's interpretation of these rules, which may be too strict or not strict enough for your company. This starts to get really complicated if different compilers are used in your company. Example someone is compiling under VisualDSP++ (embedded systems compiler) and somone else is compiling under MULTI (Green Hills Integrity compiler, Integrity has been DO-178B certified). Which compiler is giving you the best results?

A stand alone tool gives you the ability to bring developed code to an even playing ground. A home grown tool gives you the added flexibility that this tool is tailored to your specifications.

Hope this helps your cause.

Scott
scotth is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Open Source Cell phones abachler Tech Board 9 03-21-2008 09:31 AM
Open source library for graphical presentation Vogel C++ Programming 1 09-20-2005 05:54 AM
Open Source or not spidereen A Brief History of Cprogramming.com 26 04-10-2003 12:23 PM
What happened the Open source poll spidereen C++ Programming 1 04-08-2003 01:53 PM
OOT vs Structured Approach in open source software development dkt A Brief History of Cprogramming.com 3 10-12-2001 09:30 PM


All times are GMT -6. The time now is 06:45 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22