Initial commit

This commit is contained in:
Lucia Ceionia
2023-05-12 16:54:29 -05:00
commit 1f6da72364
14 changed files with 1783 additions and 0 deletions

21
Makefile Normal file
View File

@@ -0,0 +1,21 @@
objects = test.o extra.o
all: $(objects)
gcc -g -m32 -no-pie -o a.out $^
.PRECIOUS: %.S
%.S: %.src
cat $< | ./target/debug/lang-lucia -q > $@
%.o: %.S
nasm -Ox -g -F dwarf -felf -o $@ $<
%.o: %.c
gcc -m32 -g -c -o $@ $<
clean:
rm -f test.o test.S
compiler:
cargo build