capabilities to detect half/full runtime header

This commit is contained in:
dcode
2019-03-18 13:45:10 +01:00
parent ba4c00efbd
commit c147e98a55
6 changed files with 30 additions and 5 deletions

View File

@ -55,8 +55,10 @@
(global $std/runtime/header4 (mut i32) (i32.const 0))
(global $std/runtime/ref5 (mut i32) (i32.const 0))
(global $~lib/memory/HEAP_BASE i32 (i32.const 264))
(global $~lib/capabilities i32 (i32.const 2))
(export "memory" (memory $0))
(export "table" (table $0))
(export ".capabilities" (global $~lib/capabilities))
(start $start)
(func $start:~lib/allocator/tlsf (; 2 ;) (type $FUNCSIG$v)
i32.const 1