In the MISRA C document there are explanations about "Source References" and there is a table whose rows are: Unspecified, Undefined, Implementation-defined, Locale-specific, MISRA Guidelines, K&R, Koenig and IEC 61508 and introduces these as source reference. I have researched about Unspecified, Undefined, Implementation-defined, and Locale-specific behaviors. I have become somewhat familiar with them. But I don't know the concept of Source reference and why these behaviors are mentioned in Source references. Also some MISRA C rules that have Source reference. What does this mean? Thanks.
What is source references in MISRA C?
115 Views Asked by Reza Bodaghi At
1
There are 1 best solutions below
Related Questions in C
- How to call a C language function from x86 assembly code?
- What does: "char *argv[]" mean?
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- How to crop a BMP image in half using C
- How can I get the difference in minutes between two dates and hours?
- Why will this code compile although it defines two variables with the same name?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Why can't I use the file pointer after the first read attempt fails?
- #include Header files in C with definition too
- OpenCV2 on CLion
- What is causing the store latency in this program?
- How to refer to the filepath of test data in test sourcecode?
- 9 Digit Addresses in Hexadecimal System in MacOS
- My server TCP doesn't receive messages from the client in C
- Printing the characters obtained from the array s using printf?
Related Questions in UNDEFINED-BEHAVIOR
- Is it allowed to pass "this" of derived class to constructor of base class?
- Incorrect implementation of calloc() introduces division by zero and how to detect it via testing?
- What is erroneous behavior? How is it different from undefined behavior?
- Initialize a structure pointer to NULL, then try to change its members
- PhpStorm doesn't detect undefined variables at all
- Function is returning null instead of array in C
- Is this use of va_copy undefined behaviour?
- Putting 'noexcept' on possible UB
- Returning a struct containing array in C
- What should happen when control reaches __builtin_unreachable?
- Custom macro logic
- Type incoherence when compiling Java code through GWT
- Issue with printing the correct size of a string in C
- Can max_size() be undefined behavior?
- Does the runtime dereference of a nullptr always result in Segmentation Fault?
Related Questions in MISRA
- MISRA C:2012 11.3 violation casting (float *) to (uint32_t *)
- How to exclude files for MISRA compliance in make file
- MISRA C:2012 Rule 14.3
- Efficient solutions for vector type definitions and data protection in C
- Fix misra 14.4 violation in macro function
- How to generate a Rule Compliance report with Helix QaC that includes the line of code where a violation occurred?
- MISRA C advises against malloc, does this mean calloc is far more secure?
- Cppcheck GUI : How to enable Cppcheck MISRA addons via the GUI?
- MISRA C:2012 Rule 11.3 A cast shall not be performed between a pointer to object type and a pointer to a different object type
- Confirmation for inappropriate choice of macro definition name in C
- How to add headerfile path in Cppcheck
- Unable to Handle MISRA error 13.2 using a volatile pointer
- MISRA-C Violations for function like macros in Trusted Firmware-A(TFA) code
- Why inline functions also need prototypes (MISRA C 2012 Rule 8.4)
- friend inline functions violates MISRA C 2012 Rule 8.10
Related Questions in UNSPECIFIED-BEHAVIOR
- C++ "Undefined" vs "Unspecified" behavior for function calls: f(i=-2, i=-2) is no longer undefined vs f(++i, ++i) is unspecified
- Is it possible to write a strictly conforming C program that outputs to the display?
- clang 15 miscompiles code accessing indeterminate values
- How to check if the result of std::frexp is specified under the current compiler?
- What is source references in MISRA C?
- Semantics of resize without element preservation using move idiom
- Is there a reason why implementations allow instantiation of std::complex with unsupported types
- Value passed to function doubling inside call
- Is reading values of unitialized object yields Undefined Behavior
- Why bit-shift in two steps?
- Understand scipy's shapiro behavior when inserting two columns dataframe instead of one
- Why does VBA generates a "Method or data member not found" error on a ComboBox, only when exiting Excel?
- Unspecified behaviour about "object having more than one object representation"
- Floating-point: FLT_HAS_SUBNORM is 0 => subnormal value arises => unspecified behavior?
- Is it undefined behaviour for a c++ constant initialized in one .o file to depend on one defined in another file?
Related Questions in IMPLEMENTATION-DEFINED-BEHAVIOR
- C++ Phase 1 Translation Set of Source File Characters: Before vs. Post C++11, before C++23
- Computing indices in Fenwick tree/Binary Indexed Tree (BIT)
- Why signed integer overflow in c++ is undefined rather than implementation-defined?
- Characteristics of bit-Fields in C++
- Bit-Fields in C/C++: what is guaranteed, what is implementation-defined?
- What is source references in MISRA C?
- Can an operation defined as implementation-defined behavior have multi possible execution?
- C - Is reading a _Bool after setting it with memset undefined, implementation defined?
- Conversion to signed type behavior when out of range
- Conditional inclusion: numeric value for the character constants: within #if/#elif vs. without #if/#elif: why matching is implementation-defined?
- Can xor have UB/IB in C++?
- Is signed integer overflow undefined behaviour or implementation defined?
- Is there any case where %p format specifier will not print address in 0x.. format
- Indexing an `unsigned long` variable and printing the result
- Enforce increase of vector capacity by implementation defined factor when reserving
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The source references are the primary sources that are MISRA's justifications for the Guidelines, as explained in section 6.10 of MISRA C:
These source references fall into two categories, :
Those internal to the C standard (enumerated in Appendix J of the C Standard) cover:
Those external to the C standard include various Standards (eg IEC 61508) or other well-respected books
-- see profile for affiliation