mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-19 09:51:33 +00:00
More stdlib setup
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
(type $v (func))
|
||||
(global $heap/HEAP_OFFSET (mut i32) (i32.const 0))
|
||||
(global $std/heap/ptr (mut i32) (i32.const 0))
|
||||
(global $HEAP_START i32 (i32.const 4))
|
||||
(global $HEAP_BASE i32 (i32.const 4))
|
||||
(memory $0 1)
|
||||
(export "memory" (memory $0))
|
||||
(start $start)
|
||||
@ -102,7 +102,7 @@
|
||||
)
|
||||
(func $start (; 2 ;) (type $v)
|
||||
(set_global $heap/HEAP_OFFSET
|
||||
(get_global $HEAP_START)
|
||||
(get_global $HEAP_BASE)
|
||||
)
|
||||
(set_global $std/heap/ptr
|
||||
(call $Heap.allocate
|
||||
|
Reference in New Issue
Block a user