Install Binaryen and the WebAssembly Binary Toolkit (WABT)

Guy Bedford
InstructorGuy Bedford
Share this video with your friends

Social Share Links

Send Tweet
Published 7 years ago
Updated 6 years ago

In this lesson we cover the install process for Binaryen (http://github.com/WebAssembly/binaryen) to get the s2wasm binary and WABT (https://github.com/WebAssembly/wabt) to get the wast2wasm binary.

Prerequisites are cmake (https://cmake.org/download/), XCode CLI tools on Mac, or Visual Studio on Windows.

[00:00] To get the .s to .asm tool, I'm going to clone and build binaryen from GitHub. In the binaryen folder with CMake installed, we then run CMake., and when that's ready, we run CMake -- build. to build the current folder. For Windows users, if you've installed CMake and have the Visual Studio build tools, the same sort of process should work.

[00:22] To build the WebAssembly Binary Toolkit, I'm going to clone from GitHub. We need to add this recursive flag, when we do that clone, to make sure we include the sub modules. Once that's downloaded, it's roughly the same build process. Except this time, I'm going to create a build folder, running CMake within it.

[00:38] I'm going to add the CMake EXECUTABLE_OUTPUT_PATH flag to output our executable binaries into the out folder. We run that against the lower folder source. Then we run CMake -- build. to complete the build into the output path. The build folder can then be removed afterwards.

egghead
egghead
~ 42 minutes ago

Member comments are a way for members to communicate, interact, and ask questions about a lesson.

The instructor or someone from the community might respond to your question Here are a few basic guidelines to commenting on egghead.io

Be on-Topic

Comments are for discussing a lesson. If you're having a general issue with the website functionality, please contact us at support@egghead.io.

Avoid meta-discussion

  • This was great!
  • This was horrible!
  • I didn't like this because it didn't match my skill level.
  • +1 It will likely be deleted as spam.

Code Problems?

Should be accompanied by code! Codesandbox or Stackblitz provide a way to share code and discuss it in context

Details and Context

Vague question? Vague answer. Any details and context you can provide will lure more interesting answers!

Markdown supported.
Become a member to join the discussionEnroll Today