Last change
on this file since 122 was
121,
checked in by rosiere, 15 years ago
|
1) Commit_unit : remove read information of ROB
|
-
Property svn:keywords set to
Id
|
File size:
894 bytes
|
Line | |
---|
1 | // $Id: main.c 121 2009-05-27 10:13:56Z 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 | |
---|
11 | static unsigned int x; |
---|
12 | |
---|
13 | void f0 (); |
---|
14 | void f1 (); |
---|
15 | void f2 (); |
---|
16 | void f3 (); |
---|
17 | void f4 (); |
---|
18 | void f5 (); |
---|
19 | void f6 (); |
---|
20 | void f7 (); |
---|
21 | void f8 (); |
---|
22 | void f9 (); |
---|
23 | |
---|
24 | void f0 () { f1(); x++;} |
---|
25 | void f1 () { f2(); x++;} |
---|
26 | void f2 () { f3(); x++;} |
---|
27 | void f3 () { f4(); x++;} |
---|
28 | void f4 () { f5(); x++;} |
---|
29 | void f5 () { f6(); x++;} |
---|
30 | void f6 () { f7(); x++;} |
---|
31 | void f7 () { f8(); x++;} |
---|
32 | void f8 () { f9(); x++;} |
---|
33 | void f9 () { x++;} |
---|
34 | |
---|
35 | int 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 | |
---|
47 | /* f0 (); */ |
---|
48 | |
---|
49 | unsigned int * addr = (unsigned int*)((0xa0000000) + 4); |
---|
50 | *(addr) = 0; |
---|
51 | |
---|
52 | /* _exit (0); */ |
---|
53 | |
---|
54 | while (1); |
---|
55 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.