1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-03 23:36:16 +00:00
janet/examples/sysdialect_asm.janet
2023-05-12 18:11:14 -05:00

11 lines
182 B
Plaintext

(def ir-asm
@{:instructions
'((add 2 1 0)
(return 2))
:types
'(s32 s32 s32)
:parameter-count 2
:link-name "add_2_ints"})
(-> ir-asm sysir/asm sysir/to-c print)