source: trunk/Softwares/Test/Test_073/src/c/main.c @ 120

Last change on this file since 120 was 120, checked in by rosiere, 15 years ago

1) Context_state : Add statistics
2) Add configuration with multi front_end
3) Add optionnal pid at log filename

  • Property svn:keywords set to Id
File size: 890 bytes
Line 
1// $Id: main.c 120 2009-05-26 19:01:47Z rosiere $
2
3//=====[ main ]=================================================================
4/*
5 * All thread execute this routine
6 * Initialize the thread and attribute a Workload at each thread
7 */
8
9#include <stdlib.h>
10
11static unsigned int x;
12
13void f0 ();
14void f1 ();
15void f2 ();
16void f3 ();
17void f4 ();
18void f5 ();
19void f6 ();
20void f7 ();
21void f8 ();
22void f9 ();
23
24void f0 () { f1(); x++;}
25void f1 () { f2(); x++;}
26void f2 () { f3(); x++;}
27void f3 () { f4(); x++;}
28void f4 () { f5(); x++;}
29void f5 () { f6(); x++;}
30void f6 () { f7(); x++;}
31void f7 () { f8(); x++;}
32void f8 () { f9(); x++;}
33void f9 () {       x++;}
34
35int main()
36{
37  int i0,i1,i2,i3,i4;
38  const int it0 = 1000;
39  const int it1 = 100;
40  const int it3 = 10;
41
42  for (i0 = 0; i0 < it0; ++i0)
43   
44 
45 
46/*   f0 (); */
47 
48  unsigned int * addr = (unsigned int*)((0xa0000000) + 4);
49  *(addr) = 0;
50
51/*   _exit (0); */
52
53  while (1);
54}
Note: See TracBrowser for help on using the repository browser.