CCTLib
Calling-context and data-object attribution library for Intel Pin
test1.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  for (i = 0; i<N; i++) A[i] ++;
10 }
11 
12 void h()
13 {
14  int i;
15  for (i = 0; i<N/2; i++) B[i]++;
16 }
17 void h1()
18 {
19  int i;
20  for (i = 1; i<N/2; i++) B[i] = B[i-1];
21 }
22 
23 void f()
24 {
25  g();
26 }
27 
28 int main()
29 {
30  f();
31  h();
32  h1();
33  return 0;
34 }
#define N
Definition: test1.c:2
void h1()
Definition: test1.c:17
void h()
Definition: test1.c:12
void g()
Definition: test1.c:6
void f()
Definition: test1.c:23
int main()
Definition: test1.c:28