summaryrefslogtreecommitdiff
path: root/run.sh
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2024-02-19 02:11:25 -0500
committerKyle Gunger <kgunger12@gmail.com>2024-02-19 02:11:25 -0500
commit23df3b336dbc4f5d08224fd7c77d24d74100c093 (patch)
treef9725a092578279babecd21c8e9de5b3f145fd99 /run.sh
parentd4c083284985b4d9f60463a9471ce98fe468c7e0 (diff)
Basic literal eval
Diffstat (limited to 'run.sh')
-rwxr-xr-xrun.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/run.sh b/run.sh
new file mode 100755
index 0000000..d6a0f2b
--- /dev/null
+++ b/run.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+mkdir -p ./build/artifact
+filename=$1
+filename="${filename%.*}"
+./ctc $1 build/artifact/$filename.asm
+nasm -f elf64 -o ./build/artifact/$filename.o ./build/artifact/$filename.asm
+gcc -o ./build/$filename ./build/artifact/$filename.o
+