13-10-2014, 06:19 AM
In MISRA C:2012 Examples Suite, D_04_02.c has no function.
If you compile D_04_support.c or D_04_system.c then a link error should be occured.
For example, at LLVM(clang)
"_D_4_2", referenced from:
_D_4_main_support in D_04_support.o
_main in D_04_system.o
ld: symbol(s) not found
You could compile with adding a function D_4_2(){} in D_04_02.c or removing D_4_2( ); in D_04_support.c and D_04_system.c.
BTY.
In the Example suite, xx_system call xx_support, but both of them have same individual function calls.
it may be redundant.
Dr. OGAWA Kiyoshi
If you compile D_04_support.c or D_04_system.c then a link error should be occured.
For example, at LLVM(clang)
"_D_4_2", referenced from:
_D_4_main_support in D_04_support.o
_main in D_04_system.o
ld: symbol(s) not found
You could compile with adding a function D_4_2(){} in D_04_02.c or removing D_4_2( ); in D_04_support.c and D_04_system.c.
BTY.
In the Example suite, xx_system call xx_support, but both of them have same individual function calls.
it may be redundant.
Dr. OGAWA Kiyoshi
<t>Dr. OGAWA Kioshi<br/>
@kaizen_nagoya</t>
@kaizen_nagoya</t>