unify, stub impl

This commit is contained in:
dcode
2019-04-18 12:53:48 +02:00
parent 8216cf3361
commit 18c3f0c555
15 changed files with 346 additions and 141 deletions

View File

@ -0,0 +1,14 @@
import "rt";
import { memory as builtin_memory } from "memory";
export namespace memory {
export function allocate(size: usize): usize {
return __rt_allocate(size, 0);
}
export function free(ptr: usize): void {
__rt_free(ptr);
}
export function fill(dst: usize, c: u8, n: usize): void {
builtin_memory.fill(dst, c, n);
}
}

View File

@ -0,0 +1,6 @@
{
"extends": "../../../../std/assembly.json",
"include": [
"./**/*.ts"
]
}