...
This commit is contained in:
12
src/runtime/entry.s
Normal file
12
src/runtime/entry.s
Normal 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
17
src/runtime/runtime.c
Normal 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() {}
|
||||
Reference in New Issue
Block a user