mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-05 02:20:19 +00:00
19 lines
469 B
Plaintext
19 lines
469 B
Plaintext
(module
|
|
(type $FUNCSIG$ii (func (param i32) (result i32)))
|
|
(import "env" "puts" (func $puts (param i32) (result i32)))
|
|
(import "env" "_emscripten_memcpy_big" (func $_emscripten_memcpy_big (param i32 i32 i32) (result i32)))
|
|
(table 0 anyfunc)
|
|
(memory $0 1)
|
|
(data (i32.const 16) "hello, world!\00")
|
|
(export "memory" (memory $0))
|
|
(export "main" (func $main))
|
|
(func $main (; 1 ;) (result i32)
|
|
(drop
|
|
(call $puts
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|