1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-17 15:57:12 +00:00

x64 allow dynamically switching between windows and sysv target.

This commit is contained in:
Calvin Rose
2024-06-17 23:01:11 -05:00
parent e5765b26d4
commit b6fb7ae69c
8 changed files with 89 additions and 59 deletions

View File

@@ -1,5 +1,5 @@
#!/usr/bin/env bash
build/janet examples/sysir/samples.janet > temp.nasm
valgrind build/janet examples/sysir/samples.janet > temp.nasm
nasm -felf64 temp.nasm -l temp.lst -o temp.o
ld -o temp.bin -dynamic-linker /lib64/ld-linux-x86-64.so.2 -lc temp.o
valgrind ./temp.bin