Skip to content

Instantly share code, notes, and snippets.

@ghaiklor
Created June 18, 2019 06:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ghaiklor/4e0a178b9e4fac617a73f03e19391ec0 to your computer and use it in GitHub Desktop.
Save ghaiklor/4e0a178b9e4fac617a73f03e19391ec0 to your computer and use it in GitHub Desktop.
(module
(type $t0 (func))
(type $t1 (func (param i32 i32) (result i32)))
(import "main" "sayHello" (func $main.sayHello (type $t0)))
(func $add (export "add") (type $t1) (param $p0 i32) (param $p1 i32) (result i32)
get_local $p0
get_local $p1
i32.add)
(func $f2 (type $t0)
call $main.sayHello)
(func $f3 (type $t0)
nop)
(memory $memory (export "memory") 0)
(start 2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment