feat add func call and rewrite codes
This commit is contained in:
13
ccompiler/backend/riscv32/Makefile
Normal file
13
ccompiler/backend/riscv32/Makefile
Normal file
@ -0,0 +1,13 @@
|
||||
all: ccompiler
|
||||
|
||||
run: ccompiler
|
||||
./ccompiler test.c flat.bin
|
||||
|
||||
ccompiler: frontend
|
||||
gcc -g rv32ima_codegen.c ../../middleend/ir.c -L../../frontend -lfrontend -o ccompiler
|
||||
|
||||
frontend:
|
||||
make -C ../../frontend
|
||||
|
||||
clean:
|
||||
rm -f ccompiler flat.bin
|
Reference in New Issue
Block a user