06-12-2018, 08:12 AM
Hi all.
In a previous ASIL D experiment, we reinforced the MISRA rules to make explicit all that can be generated implicitly.
In another word: Don't let compiler behave alone.
A simple exemple: A computation inside a test:
Generated code can/will use a temporary ram register to store computation result and use it in the test.
Instead of letting the compiler behave like this, we had to create a local variable to perform computations.
In a previous ASIL D experiment, we reinforced the MISRA rules to make explicit all that can be generated implicitly.
In another word: Don't let compiler behave alone.
A simple exemple: A computation inside a test:
Code:
if (((Var >> 3) & 1) == 0)]
Instead of letting the compiler behave like this, we had to create a local variable to perform computations.
<t></t>