[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] Lua 5.2.0 (rc7) now available
- From: Patrick Rapin <toupie300@...>
- Date: Fri, 9 Dec 2011 14:47:30 +0100
> All feedback welcome. Thanks.
This is really for information only. I am not asking for any
modifications in Lua 5.2.0-rc7 sources !
But I found interesting to test whether Lua 5.2 respects the rules
defined by MISRA C .
MISRA (Motor Industry Software Reliability Association) has defined a
set of rules to enhance the reliability of C code. While some rules
come from common sense, many forbids perfectly valid and useful
In Green Hills compiler for MIPS (in version 4.0.1, quite old), there
is a support to check for MISRA rules conformance (each rule can be
In the annexed OpenOffice document, there is the result for that
MISRA-C 1998 has 127 rules. Lua 5.2.0 passes 79 of them (62 %), 48 fails.
The columns in the table shall be interpreted as this:
A: MISRA rule number
B: Rule importance. R means Required, A means Advisory
C: MISRA rule category
D: Test result. "Failed" alone means there are a number of warnings /
If there is just one, the file / line is given. "Pass" means no error.
E: Rule description