-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
72 lines (52 loc) · 2.21 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
all: fs
cpu: cpu1 cpu2 cpu3 cpu4process cpu4thread cpu5 pipeoverhead
mem: latency bandwidth pagefault latency_overhead pagefault_overhead
fs: file_cache file_read contention
misc: latency_overhead
cpu1:
gcc -Isrc/lib -o cpu1.out src/cpu/part1/cpu1.c
cpu2:
gcc -Isrc/lib -w -o cpu2_0.out src/cpu/part2/pco0.c
gcc -Isrc/lib -w -o cpu2_1.out src/cpu/part2/pco1.c
gcc -Isrc/lib -w -o cpu2_2.out src/cpu/part2/pco2.c
gcc -Isrc/lib -w -o cpu2_3.out src/cpu/part2/pco3.c
gcc -Isrc/lib -w -o cpu2_4.out src/cpu/part2/pco4.c
gcc -Isrc/lib -w -o cpu2_5.out src/cpu/part2/pco5.c
gcc -Isrc/lib -w -o cpu2_6.out src/cpu/part2/pco6.c
gcc -Isrc/lib -w -o cpu2_7.out src/cpu/part2/pco7.c
cpu3:
gcc -Isrc/lib -o cpu3.out src/cpu/part3/cpu3_fork.c
cpu4process:
gcc -Isrc/lib -o cpu4process.out src/cpu/part4/cpu4_process.c
cpu4thread:
gcc -Isrc/lib -o cpu4thread.out -pthread src/cpu/part4/cpu4_thread.c
cpu5:
gcc -Isrc/lib -o cpu5.out src/cpu/part5/cpu5_simple.c
gcc -Isrc/lib -pthread -o cpu5thread.out src/cpu/part5/cpu5_simple_thread.c
pipeoverhead:
gcc -Isrc/lib -o pipeoverhead.out src/cpu/part5/pipe_overhead.c
latency:
gcc -Isrc/lib -lm -o latency8.out src/mem/part1/latency8.c
gcc -Isrc/lib -lm -o latency16.out src/mem/part1/latency16.c
gcc -Isrc/lib -lm -o latency32.out src/mem/part1/latency32.c
gcc -Isrc/lib -lm -o latency64.out src/mem/part1/latency64.c
latency_overhead:
gcc -Isrc/lib -lm -o latency_overhead8.out src/mem/part1/latency_overhead8.c
gcc -Isrc/lib -lm -o latency_overhead16.out src/mem/part1/latency_overhead16.c
gcc -Isrc/lib -lm -o latency_overhead32.out src/mem/part1/latency_overhead32.c
gcc -Isrc/lib -lm -o latency_overhead64.out src/mem/part1/latency_overhead64.c
bandwidth:
gcc -Isrc/lib -o bandwidth.out src/mem/part2/bandwidth.c
pagefault:
gcc -Isrc/lib -o pagefault.out src/mem/part3/pagefault.c
pagefault_overhead:
gcc -Isrc/lib -o pagefault_overhead.out src/mem/part3/pagefault_overhead.c
file_cache:
gcc -Isrc/lib -o file_cache.out src/fs/part1/file_cache.c
file_read:
gcc -Isrc/lib -o file_read_seq.out src/fs/part2/file_read_seq.c
gcc -Isrc/lib -o file_read_random.out src/fs/part2/file_read_random.c
contention:
gcc -Isrc/lib -o contention.out src/fs/part4/contention.c
clean:
rm *.out