d2.sh
gcc D_02_01.c D_02_support.c D_02_system.c -o d2.exe
D_02_system.c
/*
* Release: 2016-11-01
*
* Example from MISRA C:2012 ( THIS IS NOT A TEST SUITE )
*
* Copyright HORIBA MIRA Limited.
*
* See file READ_ME.txt for full copyright, license and release instructions.
*/
#include "misrac2012.h"
char * src = "D_02_01.c";
#include "mc3_types.h"
#include "mc3_header.h"
int main ( void )
{
D_2_main_support ( );
PR1(src,s);
return EXIT_SUCCESS;
}
/* end of D_02_system.c */
# chmod +x d2.sh
# ./d2.sh
# $ ./d2.exe
src = D_02_01.c