From 47d7c964d075f92b9ce657f1b946f5bd6895439b Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Fri, 14 Jun 2024 22:11:54 -0400 Subject: initial commit --- Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..65163ff --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +all: main + +main: main.cpp + $(CXX) -o $@ $^ `llvm-config --cxxflags --ldflags --system-libs --libs core` -std=c++20 -ggdb -O0 -g3 + +prog: main test.fp + ./main < test.fp 2> forsp.ir + llc -march=x86 -filetype=obj --relocation-model=pic forsp.ir -O1 + clang -c support.c -m32 -Os + clang support.o forsp.ir.o -m32 -Os + +clean: + rm -f a.out main *.ir *.o -- cgit v1.2.3