CC=gcc
CFLAGS=-O3 -DUNIX

all: bubble-presorted-vect bubble-presorted-novect
	perf stat -e instructions -e cycles bubble-presorted-vect
	perf stat -e instructions -e cycles bubble-presorted-novect

bubble-presorted-vect: bubble-presorted.c
	$(CC) -O3 -std=c89 $< -o $@

bubble-presorted-novect: bubble-presorted.c
	$(CC) -O3 -std=c89 -fno-tree-slp-vectorize $< -o $@

clean:
	-rm bubble-presorted-vect bubble-presorted-novect
