Parallel Letter Frequency
This commit is contained in:
parent
3ca9867a11
commit
af89290bbc
45 changed files with 2862 additions and 0 deletions
16
wasm/hello-world/hello-world.wat
Normal file
16
wasm/hello-world/hello-world.wat
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
(module
|
||||
(memory (export "mem") 1)
|
||||
|
||||
;; Initializes the WebAssembly Linear Memory with a UTF-8 string of 14 characters starting at offset 64
|
||||
(data (i32.const 64) "Hello, World!")
|
||||
|
||||
;;
|
||||
;; Return a greeting
|
||||
;;
|
||||
;; Note: The final number (currently “14”) must match the length of the new string!
|
||||
;;
|
||||
;; @returns {(i32, i32)} The offset and length of the greeting
|
||||
(func (export "hello") (result i32 i32)
|
||||
(i32.const 64) (i32.const 13)
|
||||
)
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue