Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Rust Remove topic Rust Clear all 6 posts RSS

2023

Contributing support for a Wasm instruction to Winch

How-to 9 min +90 XP

Adding a WebAssembly instruction to Winch, Wasmtime's baseline non-optimizing compiler, touches several layers: the wasmparser VisitOperator visitor, the CodeGenContext that manages the value stack, register allocation and spilling, an ISA-independent MacroAssembler, and an x86_64 assembler built on Cranelift's ISLE-generated instruction definitions.

2022

Four Approaches to Debugging Server-side WebAssembly

How-to 8 min +80 XP

Step-debugging server-side WebAssembly can be done four ways: compiling to a native target and using LLDB/GDB, running the Wasm under Wasmtime inside LLDB, using a Wasm-specific debugger like Wasminspect, or using browser DevTools via Chrome's DWARF extension or source maps.

The quest for software engineering knowledge.

Look:
Layout: