Internet Engineering

Introduction to WebAssembly

Fall 2026 ยท Amirkabir University of Technology
@1995parham

We, Mohammad and Narges gave a presentation as Introduction to WebAssembly in Internet Engineering course at Shahid Beheshti University. Here you can find the slides and some code example of this presentation for better intuition. Before using the codes, we highly recommend to read the slides.

Slides

Scroll the slides behind this box, or open the PDF.

Tools

  • To convert a .wat file to .wasm, first install wabt, then run the commands below in your terminal. More detailed help is on the wabt GitHub page.

Installation

To install it on your OS, follow the steps here carefully.

Running wat2wasm

some examples:

# parse and typecheck test.wat
$ bin/wat2wasm test.wat

# parse test.wat and write to binary file test.wasm
$ bin/wat2wasm test.wat -o test.wasm

# parse spec-test.wast, and write verbose output to stdout (including the
# meaning of every byte)
$ bin/wat2wasm spec-test.wast -v
	
Fork me on GitHub