mirror of
https://github.com/janet-lang/janet
synced 2025-10-29 14:47:42 +00:00
Work on windows.
This commit is contained in:
4
examples/sysir/run_samples.bat
Normal file
4
examples/sysir/run_samples.bat
Normal file
@@ -0,0 +1,4 @@
|
||||
janet.exe examples/sysir/samples.janet > temp.nasm
|
||||
nasm -fwin64 temp.nasm -l temp.lst -o temp.o
|
||||
link temp.o legacy_stdio_definitions.lib msvcrt.lib /out:temp.exe
|
||||
temp.exe
|
||||
@@ -32,8 +32,8 @@
|
||||
(return x)))
|
||||
|
||||
(def main-fn
|
||||
'(defn _start:void []
|
||||
(syscall 1 1 "Hello, world!\n" 14)
|
||||
'(defn WinMain:void []
|
||||
#(syscall 1 1 "Hello, world!\n" 14)
|
||||
(doloop 10 20)
|
||||
(exit (the int 0))
|
||||
(return)))
|
||||
|
||||
Reference in New Issue
Block a user