This commit is contained in:
nub31
2025-06-26 11:58:45 +02:00
parent f40bbe4b0b
commit 7cd1ea1dce
49 changed files with 5746 additions and 0 deletions

12
src/runtime/entry.s Normal file
View File

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

17
src/runtime/runtime.c Normal file
View File

@@ -0,0 +1,17 @@
#include <stdint.h>
#define NUB_PANIC_ERROR_CODE 101
uint64_t nub_cstring_length() { return 0; }
uint64_t nub_string_length() {}
void nub_memcpy() {}
void nub_memset() {}
void nub_panic() {}
void nub_panic_array_oob() {}
void nub_panic_oom() {}