This commit is contained in:
nub31
2025-06-10 18:40:35 +02:00
parent 7f34719205
commit fb391c9fb2
12 changed files with 115 additions and 674 deletions

View File

@@ -1,18 +1,14 @@
#!/bin/bash
set -e
./clean.sh
mkdir -p out
dotnet build src/lang/Nub.Lang.CLI
nub example > out/out.ssa
nub example | qbe > out.s
nasm -g -felf64 src/runtime/runtime.asm -o out/runtime.o
nasm -g -felf64 src/runtime/core/syscall.asm -o out/syscall.o
qbe out/out.ssa > out/out.s
gcc -c -g out/out.s -o out/out.o
gcc -nostartfiles -o out/program out/runtime.o out/syscall.o out/out.o -no-pie
gcc -nostartfiles -no-pie \
out.s \
src/runtime/baseline/entry.s \
src/runtime/baseline/nub_memcpy.s \
src/runtime/baseline/nub_memset.s \
src/runtime/baseline/nub_panic.s \
src/runtime/baseline/nub_strcmp.s \