|
Last change
on this file since 119 was
119,
checked in by rosiere, 17 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 | |
|---|
| 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; |
|---|
| 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.