Build your own WebAssembly Compiler (2019)

The author wanted to write their own compiler and decided to use WebAssembly as a target. They initially planned to share their experiences at a conference but couldn’t attend, so they decided to write a blog post instead. They explain what WebAssembly is and why it exists, highlighting its benefits and popularity. The author then goes on to explain their process of building a compiler from scratch, starting with a minimal WebAssembly module and gradually adding more functionality. They discuss the tokenizer, parser, and emitter components of the compiler and provide code examples and explanations for each step. The article concludes with the implementation of binary expressions in the compiler.

https://blog.scottlogic.com/2019/05/17/webassembly-compiler.html

To top