blob: 65163ff5f0048416a6a4ecc6ad72d4ff76c5f9b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
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
|