Skip to content

Latest commit

 

History

History
61 lines (45 loc) · 1.38 KB

README.md

File metadata and controls

61 lines (45 loc) · 1.38 KB

whisk

A minimal WebAssembly runtime, created for fun (and learning)

build status

How to use?

# clone the GitHub repository
git clone https://github.com/gauravgahlot/whisk.git
cd whisk

# build whisk
make

Examples

WebAssembly Text Format (.wat)

  • Create a file with the following content and save it as hello.wat:
(module
  (func (export "main")
      (result i32)
    i32.const 1
    return))
  • Build a WebAssembly module using wat2wasm:
wat2wasm hello.wat -o hello.wasm
  • Run the module with whisk
whisk hello.wasm

Resources