commit: d851484fc7fac2b745d7ab2edbabaccdc5528fee
parent 649d7b68dc2ae32707e1b07ed82dad8ae4fef31d
Author: fosslinux <fosslinux@aussies.space>
Date: Mon, 4 Jan 2021 12:19:50 +1100
Merge pull request #1 from stikonas/blynn-compiler
Bootstrap blynn-compiler up to marginally
Diffstat:
1 file changed, 33 insertions(+), 0 deletions(-)
diff --git a/sysa/blynn-compiler.kaem b/sysa/blynn-compiler.kaem
@@ -114,3 +114,36 @@ hex2 -f test/common_x86/ELF-i386-debug.hex2 \
# Make virtually
./bin/vm -f virtually.hs --foreign 2 --raw generated/uniquely_raw.txt --rts_c run -o generated/virtually_raw.txt
+
+# Make marginally
+./bin/vm -f marginally.hs --foreign 2 --raw generated/virtually_raw.txt --rts_c run -o generated/marginally.c
+M2-Planet --architecture x86 \
+ -f functions/file.c \
+ -f functions/exit.c \
+ -f functions/malloc.c \
+ -f functions/calloc.c \
+ -f functions/file_print.c \
+ -f functions/in_set.c \
+ -f functions/numerate_number.c \
+ -f functions/match.c \
+ -f functions/require.c \
+ -f generated/marginally.c \
+ --debug \
+ -o bin/marginally.M1
+
+blood-elf -f bin/marginally.M1 --entry _start -o bin/marginally-footer.M1
+
+M1 -f test/common_x86/x86_defs.M1 \
+ -f test/common_x86/libc-core.M1 \
+ -f bin/marginally.M1 \
+ -f bin/marginally-footer.M1 \
+ --LittleEndian \
+ --architecture x86 \
+ -o bin/marginally.hex2
+
+hex2 -f test/common_x86/ELF-i386-debug.hex2 \
+ -f bin/marginally.hex2 \
+ --LittleEndian \
+ --architecture x86 \
+ --BaseAddress 0x8048000 \
+ -o bin/marginally --exec_enable