Search⌘ K
AI Features

The wasm-as Tool

Explore how to use the wasm-as tool to convert WebAssembly text format (.wat) into binary (.wasm). Learn to validate files, customize output names, enable or disable features, and generate detailed module descriptions for better understanding and optimization.

We'll cover the following...

The wasm-as tool converts WAST into WASM. Let’s look at the steps:

  1. Let’s create a new folder, called binaryen-playground, and go into the folder:

C++
mkdir binaryen-playground
cd binaryen-playground
  1. Create a .wat file called add.wat:

C++
touch add.wat
...