CCTLib
Calling-context and data-object attribution library for Intel Pin
test3.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 int C[N];
6 
7 void g()
8 {
9  int i=0;
10  for (i = 0; i<N; i++) A[i] ++;
11  for (i = 0; i<N; i++) C[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: test3.c:2
void h()
Definition: test3.c:14
void g()
Definition: test3.c:7
int C[N]
Definition: test3.c:5
void f()
Definition: test3.c:20
int main()
Definition: test3.c:25