/***************************************************************/ /* */ /* PROJECT NAME : TestKpitGnuRL78 */ /* FILE : TestKpitGnuRL78.c */ /* DESCRIPTION : Main Program */ /* CPU SERIES : RL78 - G13 */ /* CPU TYPE : R5F100LG */ /* */ /* This file is generated by e2 studio. */ /* */ /***************************************************************/ /************************************************************************/ /* File Version: V1.00 */ /* Date Generated: 10/09/2013 */ /************************************************************************/ #ifdef CPPAPP //Initialize global constructors extern "C" void __main() { static int initialized; if (! initialized) { typedef void (*pfunc) (); extern pfunc __ctors[]; extern pfunc __ctors_end[]; pfunc *p; initialized = 1; for (p = __ctors_end; p > __ctors; ) (*--p) (); } } #endif void main(void); volatile int v = 0xcdcd; void main(void) { static int s00 = 0x00; static int s01 = 0x01; static int s02 = 0x02; static int s03 = 0x03; static int s04 = 0x04; static int s05 = 0x05; static int s06 = 0x06; static int s07 = 0x07; static int s08 = 0x08; static int s09 = 0x09; static int s0a = 0x0a; static int s0b = 0x0b; static int s0c = 0x0c; static int s0d = 0x0d; static int s0e = 0x0e; static int s0f = 0x0f; int a00 = 0x00; int a01 = 0x10; int a02 = 0x20; int a03 = 0x30; int a04 = 0x40; int a05 = 0x50; int a06 = 0x60; int a07 = 0x70; int a08 = 0x80; int a09 = 0x90; int a0a = 0xa0; int a0b = 0xb0; int a0c = 0xc0; int a0d = 0xd0; int a0e = 0xe0; int a0f = 0xf0; for (;;) { v = s00; v = s01; v = s02; v = s03; v = s04; v = s05; v = s06; v = s07; v = s08; v = s09; v = s0a; v = s0b; v = s0c; v = s0d; v = s0e; v = s0f; v = a00; v = a01; v = a02; v = a03; v = a04; v = a05; v = a06; v = a07; v = a08; v = a09; v = a0a; v = a0b; v = a0c; v = a0d; v = a0e; v = a0f; } }