1;; Like greeter_reactor, but exports "_start" instead of "_initialize".
2(module
3  (import "wasi_snapshot_preview1" "fd_write"
4    (func $__wasi_fd_write (param i32 i32 i32 i32) (result i32)))
5  (func (export "_start")
6    (call $print (i32.const 32) (i32.const 22))
7  )
8  (func (export "greet")
9    (call $print (i32.const 64) (i32.const 21))
10  )
11  (func $print (param $ptr i32) (param $len i32)
12    (i32.store (i32.const 8) (local.get $len))
13    (i32.store (i32.const 4) (local.get $ptr))
14        (drop (call $__wasi_fd_write
15          (i32.const 1)
16          (i32.const 4)
17          (i32.const 1)
18          (i32.const 0)))
19  )
20  (memory (export "memory") 1)
21  (data (i32.const 32) "Hello callable _start\0a")
22  (data (i32.const 64) "Hello callable greet\0a")
23)
24