Skip to content

Instantly share code, notes, and snippets.

@lqd
Created October 4, 2016 18:30
Show Gist options
  • Save lqd/d2db11c78d1264f6ea4e79011e822acd to your computer and use it in GitHub Desktop.
Save lqd/d2db11c78d1264f6ea4e79011e822acd to your computer and use it in GitHub Desktop.
(module
(memory 1 1)
(start $__wasm_start)
(type $rustfn-0-3 (func))
(type $__wasm_start (func))
(export "memory" (memory $0))
(export "main" (func $main))
(func $main (type $rustfn-0-3)
(local $0 i32)
(i32.store
(i32.const 0)
(tee_local $0
(i32.load
(i32.const 0)
)
)
)
(get_local $0)
)
(func $__wasm_start (type $__wasm_start)
(i32.store
(i32.const 0)
(i32.const 65535)
)
(drop
(call $main)
)
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment