terryfy | Utilities for testing OSX on travis-ci.org | Continous Integration library
kandi X-RAY | terryfy Summary
kandi X-RAY | terryfy Summary
Utilities for testing OSX on travis-ci.org
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Unpack a patch build
- Unpack the build
- Repath lib_fname
terryfy Key Features
terryfy Examples and Code Snippets
Community Discussions
Trending Discussions on terryfy
QUESTION
This is motivated by a question that I made previously (on the same topic):
Do BLAS and LAPACK libraries comply with MISRA standard?
Now I have a much more important question: is libstdc++ (which is the implementation of the standard library by gcc) MISRA C++:2008 compliant? I assume the answer is yes... as long as you compile your code with gcc
and the -std=c++03
flag.
What happens if I compile the code with the standard from 2011 (i.e. -std=c++11
)? Is that MISRA C++:2008 compliant? Do I have to prove that the libstdc++ is MISRA compliant? I can write deviations for a couple of rules (for example, I want to use std::array
instead of C-style arrays), but writing them for the whole MISRA standard looks like a terryfying task.
I would appreciate any insight into this topic.
...ANSWER
Answered 2018-Apr-25 at 09:23No, it is not MISRA-C++ compliant. Neither is glibc. But then there's no requirement from the standard that the library must be written in a certain language either. Standard compliance for the standard library itself is a rather muddy topic, with or without MISRA.
I very much doubt that MISRA-C++ is a priority for these libraries. The library (and gcc) maintainers are mostly from the Linux/Desktop ("hosted system") side of things, where MISRA compliance isn't required.
If you need a MISRA compliant standard library, you'll have to look at the various commercial embedded systems compilers.
What happens if I compile the code with the standard from 2011? Is that MISRA C++:2008 compliant?
No it is not compliant. MISRA-C++ requires explicitly that you use C++03, so it will be very hard to justify a deviation here.
Do I have to prove that the libstdc++ is MISRA compliant?
There is no way to prove it, since it is not.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install terryfy
You can use terryfy like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page