first commit

This commit is contained in:
yoyo
2024-11-03 06:24:26 +09:00
parent b8ffc0632a
commit f4b991f953
24 changed files with 5316 additions and 0 deletions

19
makefile Normal file
View File

@@ -0,0 +1,19 @@
CFLAGS= -g -O0 -std=c99 -Wall -Wextra
SRCS=$(wildcard *.c)
OBJS=$(SRCS:.c=.o)
com: $(OBJS)
$(CC) $(CFLAGS) -o $@ $^
make -C ./vm
cp ./vm/run .
$(OBJS): yo.h isa.h fn.h dat.h
tests:
./com fib.yo
./run obj
clean:
rm -f com $(OBJS) obj exported run
make clean -C ./vm