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

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

1) Prediction unit : static prediction not blocking

  • Property svn:keywords set to Id
File size: 826 bytes
Line 
1// $Id: main.c 119 2009-05-25 17:40:26Z 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;
38  const int it0 = 1000;
39
40  for (i0 = 0; i0 < it0; ++i0);
41 
42/*   f0 (); */
43 
44  unsigned int * addr = (unsigned int*)((0xa0000000) + 4);
45  *(addr) = 0;
46
47/*   _exit (0); */
48
49  while (1);
50}
Note: See TracBrowser for help on using the repository browser.