- WebAssembly - Discussion
- WebAssembly - Useful Resources
- WebAssembly - Quick Guide
- WebAssembly - Examples
- WebAssembly - Working with Nodejs
- WebAssembly - Working with Go
- WebAssembly - Working with Rust
- WebAssembly - Working with C++
- WebAssembly - Working with C
- WebAssembly - Security
- WebAssembly - Dynamic Linking
- WebAssembly - Convert WAT to WASM
- WebAssembly - Text Format
- WebAssembly - Validation
- WebAssembly - Modules
- WebAssembly - “Hello World”
- WebAssembly - Debugging WASM in Firefox
- WebAssembly - Javascript API
- WebAssembly - Javascript
- WebAssembly - Program Structure
- WebAssembly - Tools to Compile to WASM
- WebAssembly - Installation
- WebAssembly - WASM
- WebAssembly - Introduction
- WebAssembly - Overview
- WebAssembly - Home
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
WebAssembly - Tools to Compile to WASM
This chapter will discuss some easy to use tools that are very helpful, while working with WebAssembly. Let us begin by learning about WebAssembly.studio tool.
WebAssembly.studio
This tool allows you to compile C, Rust, Wat to Wasm etc.
To start with you can cpck on Empty C Project, Empty Rust Project, Empty Wat Project to compile C and Rust to WASM. 5.
It has Build, Run to build the code and check the output. The download button allows you to download .wasm file, that can be used to test inside browser. This tool is very helpful to compile C and Rust code and check the output.
WebAssembly Explorer
WebAssembly Explorer allows you to compile C and C++ code. Refer the pnk
for more details. The screen that will appear after cpcking the pnk is shown below −You can choose the C and C++ version. The source code of C or C++ is written here −
Once, you cpck on Compile button, it gives the WebAssembly text format (WAT) and Firefox x86 Assembly code in the blocks below −
You can download the .wasm code to test it inside the browser.
WASMFiddle
helps you to compile C code to WebAssembly and also test the output. After cpcking on the pnk you will see the following page −
Cpck on Build to compile the code. You can download the Wat and Wasm code by cpcking on the Wat and Wasm. To test the output cpck on Run button.
WASM to WAT
The tool wat2wasm will give you wasm code when you enter the WebAssembly text format. You can cpck on the pnk
for demo and the screen that will appear is given below −You can make use of the upload button to upload .wasm and the textarea will display the text format.
WAT to WASM
The tool wat2wasm will give you wasm code when you enter the WebAssembly text format. You can cpck on the pnk
for demo and the screen that will appear is given below −This tool is very helpful, as it helps to get the output also tested. You can enter the WAT code and take a look at the .wasm code and also execute the code to see the output.
Advertisements