Do BLAS and LAPACK libraries comply with MISRA standard?

血红的双手。 提交于 2020-01-16 08:35:55

问题


I guess the answer is no. However, I was wondering if someone has some insight into this topic.

Do BLAS and LAPACK libraries comply with MISRA standards? The MISRA standards (MISRA C:1998, MISRA C:2004, MISRA C:2012) are extremly demanding, and I believe that BLAS and LAPACK libraries do not comply with it. Hence, I should not use such libraries if my software project demands MISRA compliance.

Any insight into this question would be extremly appreciated :)


回答1:


Unless the library is actively advertised as MISRA-C compliant, it is pretty safe to assume that it isn't.

There's basically various levels of strictness you can apply to your project. Either you do some "MISRA light" where your own application fulfils MISRA but the libraries does not. Or you demand that every library, including standard libraries, are MISRA compliant.

The former is ok if you are just using MISRA as a bug-killing standard. But in case you are using MISRA because of safety requirements, then all libraries must comply - including to some extent the compiler's standard library (if used).




回答2:


Let me point you at MISRA Compliance:2016 which deals in more detail with the thorny issue of achieving MISRA Compliance - and can be retrofitted onto ANY of the MISRA language guidelines.

The section on Adopted Code should help answer your question - and in simple terms, unless the library comes with an appropriate Compliance Summary, then the answer in No.

Whether you should use such libraries in production code is a matter for you (and your project) - appropriate documentation (and additional V&V may be adequate) - and this will impact your own Compliance.

{ please note profile for disclaimer }



来源:https://stackoverflow.com/questions/49985186/do-blas-and-lapack-libraries-comply-with-misra-standard

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!