2022-11-11 13:23:45 +01:00
|
|
|
-include ../../../utilities/options.mk
|
|
|
|
-include ../../../utilities/c2.mk
|
|
|
|
|
2022-11-16 17:04:50 +01:00
|
|
|
# -DPOLYBENCH_TIME makes Polybench output the execution time of the program
|
|
|
|
CFLAGS+= -DPOLYBENCH_TIME
|
2022-11-16 01:43:59 +01:00
|
|
|
# -DLARGE_DATASET increases the size of arrays, making everything easier to profile
|
2022-11-16 17:04:50 +01:00
|
|
|
# Do not use EXTRALARGE_DATASET, int will overflow
|
|
|
|
CFLAGS+= -DLARGE_DATASET
|
2022-11-16 01:43:59 +01:00
|
|
|
# -Wall and -Wextra enable more warnings
|
2022-11-16 17:04:50 +01:00
|
|
|
CFLAGS+= -Wall
|
|
|
|
CFLAGS+= -Wextra
|
2022-11-16 01:43:59 +01:00
|
|
|
# -O3 applies all compiler optimization, improving from 800ms to 300ms
|
2022-11-16 17:04:50 +01:00
|
|
|
CFLAGS+= -O3
|
2022-11-16 01:43:59 +01:00
|
|
|
# -g3 enables some useful debug things
|
2022-11-16 17:04:50 +01:00
|
|
|
CFLAGS+= -g3
|
2022-11-16 17:06:16 +01:00
|
|
|
|
|
|
|
# Disable make output
|
2022-11-16 17:09:27 +01:00
|
|
|
MAKEFLAGS+= --silent
|
|
|
|
|
|
|
|
.PHONY: bench
|
|
|
|
|
|
|
|
bench:
|
|
|
|
make clean all
|
2022-11-16 17:39:09 +01:00
|
|
|
./.bench.sh
|