From fb588483addb542240935b30555dedf199ff5df3 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 17 Jun 2023 17:04:41 +0200 Subject: Added optimizer --- makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'makefile') diff --git a/makefile b/makefile index a2bec28..04b17c8 100644 --- a/makefile +++ b/makefile @@ -1,11 +1,11 @@ all: asm asm: - @nasm -f elf64 -o sort.o sort.asm - @nasm -f elf64 -o data.o data.asm - @gcc -no-pie -o sort data.o sort.o + @nasm -O3 -f elf64 -o sort.o sort.asm + @nasm -O3 -f elf64 -o data.o data.asm + @gcc -O3 -no-pie -o sort data.o sort.o c: - @nasm -f elf64 -o data.o data.asm - @gcc -no-pie -c -o csort.o benchmark/sort.c - @gcc -no-pie -o csort data.o csort.o + @nasm -O3 -f elf64 -o data.o data.asm + @gcc -O3 -no-pie -c -o csort.o benchmark/sort.c -Wno-pointer-to-int-cast + @gcc -O3 -no-pie -o csort data.o csort.o -- cgit v1.2.3