-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathmake_bench.sh
executable file
·39 lines (21 loc) · 4.5 KB
/
make_bench.sh
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
OPT_LEVEL="-O3"
# OPT_LEVEL="-O0 -g"
# CFLAGS="-D_GIBBON_SIMPLE_WRITE_BARRIER=1"
CFLAGS=""
gcc -std=gnu11 $OPT_LEVEL $CFLAGS -flto -o $GIBBONDIR/gibbon-compiler/examples/gc/Sharing_1.exe -I$GIBBONDIR/gibbon-rts/build -L$GIBBONDIR/gibbon-rts/build -Wl,-rpath=$GIBBONDIR/gibbon-rts/build $GIBBONDIR/gibbon-compiler/examples/gc/Sharing_1.c $GIBBONDIR/gibbon-rts/build/gibbon_rts.o -lm -lgibbon_rts_ng
gcc -std=gnu11 $OPT_LEVEL $CFLAGS -flto -o $GIBBONDIR/gibbon-compiler/examples/gc/Reverse_1.exe -I$GIBBONDIR/gibbon-rts/build -L$GIBBONDIR/gibbon-rts/build -Wl,-rpath=$GIBBONDIR/gibbon-rts/build $GIBBONDIR/gibbon-compiler/examples/gc/Reverse_1.c $GIBBONDIR/gibbon-rts/build/gibbon_rts.o -lm -lgibbon_rts_ng
gcc -std=gnu11 $OPT_LEVEL $CFLAGS -flto -o $GIBBONDIR/gibbon-compiler/examples/gc/TreeUpdate_1.exe -I$GIBBONDIR/gibbon-rts/build -L$GIBBONDIR/gibbon-rts/build -Wl,-rpath=$GIBBONDIR/gibbon-rts/build $GIBBONDIR/gibbon-compiler/examples/gc/TreeUpdate_1.c $GIBBONDIR/gibbon-rts/build/gibbon_rts.o -lm -lgibbon_rts_ng
gcc -std=gnu11 $OPT_LEVEL $CFLAGS -flto -o $GIBBONDIR/gibbon-compiler/examples/gc/Coins_1.exe -I$GIBBONDIR/gibbon-rts/build -L$GIBBONDIR/gibbon-rts/build -Wl,-rpath=$GIBBONDIR/gibbon-rts/build $GIBBONDIR/gibbon-compiler/examples/gc/Coins_1.c $GIBBONDIR/gibbon-rts/build/gibbon_rts.o -lm -lgibbon_rts_ng
gcc -std=gnu11 $OPT_LEVEL $CFLAGS -flto -o $GIBBONDIR/gibbon-compiler/examples/gc/Lcss_1.exe -I$GIBBONDIR/gibbon-rts/build -L$GIBBONDIR/gibbon-rts/build -Wl,-rpath=$GIBBONDIR/gibbon-rts/build $GIBBONDIR/gibbon-compiler/examples/gc/Lcss_1.c $GIBBONDIR/gibbon-rts/build/gibbon_rts.o -lm -lgibbon_rts_ng
gcc -std=gnu11 $OPT_LEVEL $CFLAGS -flto -o $GIBBONDIR/gibbon-compiler/examples/gc/Lcss_2.exe -I$GIBBONDIR/gibbon-rts/build -L$GIBBONDIR/gibbon-rts/build -Wl,-rpath=$GIBBONDIR/gibbon-rts/build $GIBBONDIR/gibbon-compiler/examples/gc/Lcss_2.c $GIBBONDIR/gibbon-rts/build/gibbon_rts.o -lm -lgibbon_rts_ng
gcc -std=gnu11 $OPT_LEVEL $CFLAGS -flto -o $GIBBONDIR/gibbon-compiler/examples/gc/TreeUpdate_2.exe -I$GIBBONDIR/gibbon-rts/build -L$GIBBONDIR/gibbon-rts/build -Wl,-rpath=$GIBBONDIR/gibbon-rts/build $GIBBONDIR/gibbon-compiler/examples/gc/TreeUpdate_2.c $GIBBONDIR/gibbon-rts/build/gibbon_rts.o -lm -lgibbon_rts_ng
gcc -std=gnu11 $OPT_LEVEL $CFLAGS -flto -o $GIBBONDIR/gibbon-compiler/examples/gc/Power_1.exe -I$GIBBONDIR/gibbon-rts/build -L$GIBBONDIR/gibbon-rts/build -Wl,-rpath=$GIBBONDIR/gibbon-rts/build $GIBBONDIR/gibbon-compiler/examples/gc/Power_1.c $GIBBONDIR/gibbon-rts/build/gibbon_rts.o -lm -lgibbon_rts_ng
gcc -std=gnu11 $OPT_LEVEL $CFLAGS -flto -o $GIBBONDIR/gibbon-compiler/examples/gc/Benchrunner_1.exe -I$GIBBONDIR/gibbon-rts/build -L$GIBBONDIR/gibbon-rts/build -Wl,-rpath=$GIBBONDIR/gibbon-rts/build $GIBBONDIR/gibbon-compiler/examples/gc/Benchrunner_1.c $GIBBONDIR/gibbon-rts/build/gibbon_rts.o -lm -lgibbon_rts_ng
gcc -std=gnu11 $OPT_LEVEL $CFLAGS -flto -o $GIBBONDIR/gibbon-compiler/examples/gc/Reverse_1_noregsizeinfer.exe -I$GIBBONDIR/gibbon-rts/build -L$GIBBONDIR/gibbon-rts/build -Wl,-rpath=$GIBBONDIR/gibbon-rts/build $GIBBONDIR/gibbon-compiler/examples/gc/Reverse_1_noregsizeinfer.c $GIBBONDIR/gibbon-rts/build/gibbon_rts.o -lm -lgibbon_rts_ng
gcc -std=gnu11 $OPT_LEVEL $CFLAGS -flto -o $GIBBONDIR/gibbon-compiler/examples/gc/Coins_1_noregsizeinfer.exe -I$GIBBONDIR/gibbon-rts/build -L$GIBBONDIR/gibbon-rts/build -Wl,-rpath=$GIBBONDIR/gibbon-rts/build $GIBBONDIR/gibbon-compiler/examples/gc/Coins_1_noregsizeinfer.c $GIBBONDIR/gibbon-rts/build/gibbon_rts.o -lm -lgibbon_rts_ng
gcc -std=gnu11 $OPT_LEVEL $CFLAGS -flto -o $GIBBONDIR/gibbon-compiler/examples/gc/Benchrunner_master_1.exe $GIBBONDIR/gibbon-compiler/examples/gc/Benchrunner_master_1.c -lm
gcc -std=gnu11 $OPT_LEVEL $CFLAGS -flto -o $GIBBONDIR/gibbon-compiler/examples/gc/Reverse_master_1.exe $GIBBONDIR/gibbon-compiler/examples/gc/Reverse_master_1.c -lm
gcc -std=gnu11 $OPT_LEVEL $CFLAGS -flto -o $GIBBONDIR/gibbon-compiler/examples/gc/Coins_master_1.exe $GIBBONDIR/gibbon-compiler/examples/gc/Coins_master_1.c -lm
gcc -std=gnu11 $OPT_LEVEL $CFLAGS -flto -o $GIBBONDIR/gibbon-compiler/examples/gc/TreeUpdate_master_1.exe $GIBBONDIR/gibbon-compiler/examples/gc/TreeUpdate_master_1.c -lm
gcc -std=gnu11 $OPT_LEVEL $CFLAGS -flto -o $GIBBONDIR/gibbon-compiler/examples/gc/Power_master_1.exe $GIBBONDIR/gibbon-compiler/examples/gc/Power_master_1.c -lm
gcc -std=gnu11 $OPT_LEVEL $CFLAGS -flto -o $GIBBONDIR/gibbon-compiler/examples/gc/Lcss_master_1.exe $GIBBONDIR/gibbon-compiler/examples/gc/Lcss_master_1.c -lm