userland/src/lib: hello world
This commit is contained in:
parent
98ee85c579
commit
9e6738969a
|
@ -0,0 +1,9 @@
|
||||||
|
(module
|
||||||
|
(func $log (import "env" "log") (param i32 i32) (result i32))
|
||||||
|
(memory $mem 1)
|
||||||
|
(data (i32.const 200) "Hello")
|
||||||
|
(func $main (result i32)
|
||||||
|
(i32.const 200)
|
||||||
|
(i32.const 5)
|
||||||
|
(call $log))
|
||||||
|
(export "main" (func $main)))
|
Loading…
Reference in New Issue