OSDN Git Service

* public snapshot of sid simulator
[pf3gnuchains/pf3gnuchains3x.git] / sid / component / testsuite / sidcomp.profiling / test-prof.c
1 /*
2 # mach(): all 
3 # output(): Done*
4 */
5
6 #ifndef WORKFACTOR
7 #define WORKFACTOR 10
8 #endif
9
10
11 int main()
12
13   /* Use register variables to use memory system very little. */
14   register unsigned i, j = 0;
15   for (i=0; i<(150000*WORKFACTOR); i++)
16     j += i;
17   printf ("Done (%d)\n", j);
18   return 0;
19 }