On Mon, Nov 21, 2005 at 09:53:13PM +0100, Fredrik Hederstierna wrote:
> Ok, you might be right, but I'm curious why you think it's so
> terrible though.

This is a bit off topic, but since you asked: the MISRA rules are a set
of safety-oriented style guidelines, some of which can be reasonably
enforced by tools (not just the compiler, your linker at least needs to
be in on the game too if you want to get them all) and some of which
can't be (code review required).

This leaves open the questions of:
  - Whether the guidelines themselves are worth something.
  - Whether the compiler can enforce them thoroughly enough to provide
    any guarantees.
  - Whether the appropriate tool for guideline enforcement is really
    the compiler.

And from the last time I looked at them, which was some years ago, my
answer was "no" on all counts.  Do it with a custom tool, rather than
piling it into the compiler and linker proper.  This wouldn't be a
mammoth task.

-- 
Daniel Jacobowitz
CodeSourcery, LLC

Reply via email to