OSDN Git Service
(root)
/
pf3gnuchains
/
pf3gnuchains3x.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* public snapshot of sid simulator
[pf3gnuchains/pf3gnuchains3x.git]
/
sid
/
component
/
testsuite
/
sidcomp.bsp
/
test-memory.c
1
/*
2
# mach(): all
3
# output(): Done*
4
*/
5
6
#ifndef WORKFACTOR
7
#define WORKFACTOR 10
8
#endif
9
10
int q;
11
12
int main()
13
{
14
volatile unsigned* p = & q;
15
register unsigned i;
16
for(i=0; i<(10000*WORKFACTOR); i++)
17
{
18
(*p) = 0; /* 1 */
19
(*p) = 0;
20
(*p) = 0;
21
(*p) = 0;
22
(*p) = 0;
23
(*p) = 0;
24
(*p) = 0;
25
(*p) = 0;
26
(*p) = 0;
27
(*p) = 0;
28
(*p) = 0;
29
(*p) = 0;
30
(*p) = 0;
31
(*p) = 0;
32
(*p) = 0;
33
(*p) = 0;
34
(*p) = 0;
35
(*p) = 0;
36
(*p) = 0;
37
(*p) = 0; /* 20 */
38
}
39
printf ("Done (%d)\n", i);
40
}
41