paint-brush
How to Build a WebAssembly Language for Fun and Profitby@courier
529 reads
529 reads

How to Build a WebAssembly Language for Fun and Profit

by CourierSeptember 2nd, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

This is the third article in the Build a programming language series. We are going to use a popular WebAssembly compiler toolchain called binaryen. Binaryen does most of the heavy compiling tasks for us. The compile function will take our root AST (a `BlockNode`) and return a new `binaryen module. The final phase of our code generation is code generation. The return type of `generateFunctionMap` is a map where the key is the function name and the value is an object containing all the important information about the function.
featured image - How to Build a WebAssembly Language for Fun and Profit
Courier HackerNoon profile picture
Courier

Courier

@courier

L O A D I N G
. . . comments & more!

About Author

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Twitter