This commit is contained in:
nub31
2025-09-11 21:22:30 +02:00
parent 5fecfeba43
commit fd27d2709d
46 changed files with 5339 additions and 0 deletions

9
example/main.nub Normal file
View File

@@ -0,0 +1,9 @@
module "main"
extern "puts" func puts(text: cstring)
extern "main" func main(args: []cstring): i64
{
puts("test")
return 0
}

10
example/x86_64.s Normal file
View File

@@ -0,0 +1,10 @@
.intel_syntax noprefix
.text
.globl _start
_start:
mov rdi, rsp
call main.main
mov rdi, rax
mov rax, 60
syscall