CCTLib
Calling-context and data-object attribution library for Intel Pin
test5.c
Go to the documentation of this file.
1 #include <stdio.h>
2 #define N (10000000)
3 int A[N];
4 int B[N/2];
5 
6 void g()
7 {
8  int i=0;
9  int t1, t2;
10  for (i = 0; i<N; i+=5) t1 = A[i];
11  for (i = 0; i<N; i+=5) t2 = A[i];
12 }
13 
14 void h()
15 {
16  int i;
17  for (i = 0; i<N/2; i++) B[i]++;
18 }
19 
20 void f()
21 {
22  g();
23 }
24 
25 int main()
26 {
27  f();
28  h();
29  return 0;
30 }
#define N
Definition: test5.c:2
void h()
Definition: test5.c:14
void g()
Definition: test5.c:6
void f()
Definition: test5.c:20
int main()
Definition: test5.c:25