Skip to content

threadedstream/wasmexperiments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 

Repository files navigation

wasmexperiments

Fiddling around with wasm binary format

This is an experimental repository where I'm desperately (or not so) trying to comprehend the internal structure of WASM and hopefully make something good out of it.

TODO

Deserialization

  • Types Section
  • Function Section
  • Table Section
  • Global Section
  • Export Section
  • Start Section
  • Element Section
  • Code Section
  • Data Section

Instructions

  • Define all existing instructions in an informative way (its name, number of input params)
  • Dump module's code in the form of bytecode instructions (sort of debug function)

Basic interpretation

  • Write a basic wasm interpreter that interprets addition program

Update

I decided to make it my university research project, so it means rendering this project alive again! Currently, I'm actively involved in comprehending insides of WASM by means of tinkering with my fork of wagon interpreter.

Resources

Bringing the Web up to Speed with WebAssembly
A fast in-place interpreter for WebAssembly
WebAssembly: The Definitive Guide
WASM opcode table
wazero Runtime
My reference WASM manual

About

Fiddling around with wasm binary format

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors