Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compiler - minimal test suite
#1
It would be nice if MISRA specified a mandatory C/C++ compiler minimal test-suite package to be run against production compiler.

If your compiler is claimed to be C99 compliant, then you shouldn't be worried about not passing.

We have seen so many buggy compilers (e.g. I remember Microchip miscompiling u32 on 8bit code that ran fine in IAR on 32bit)

If we cannot trust the compiler then we can argue about MISRA rules all day, the hidden bugs will remain to be found either by testing or by end user.

It will never be perfect nor exhaustive, but we could raise the minimum bar at least.
Reply
#2
Thanks for the suggestion... for MISRA-C:2004 and MISRA C:2012, an Example Suite was produced, which may help...

This has not been updated for MISRA C:2023/2025 (yet?)

A compiler test suite is of a different scale, and MISRA does not endorse any particular compiler (or other tools for that matter)...
Posted by and on behalf of the MISRA C Working Group
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)