// $Id: main.c 121 2009-05-27 10:13:56Z rosiere $ //=====[ main ]================================================================= /* * All thread execute this routine * Initialize the thread and attribute a Workload at each thread */ #include static unsigned int x; void f0 (); void f1 (); void f2 (); void f3 (); void f4 (); void f5 (); void f6 (); void f7 (); void f8 (); void f9 (); void f0 () { f1(); x++;} void f1 () { f2(); x++;} void f2 () { f3(); x++;} void f3 () { f4(); x++;} void f4 () { f5(); x++;} void f5 () { f6(); x++;} void f6 () { f7(); x++;} void f7 () { f8(); x++;} void f8 () { f9(); x++;} void f9 () { x++;} int main() { int i0,i1,i2,i3,i4; const int it0 = 1000; const int it1 = 100; const int it3 = 10; for (i0 = 0; i0 < it0; ++i0); /* f0 (); */ unsigned int * addr = (unsigned int*)((0xa0000000) + 4); *(addr) = 0; /* _exit (0); */ while (1); }