[GSoC] apps/wasm: add WASM 1.0 binary parser and disassembler #397

Open
dannydod wants to merge 1 commits from dannydod/kolibrios:wasm-parser into main
First-time contributor

Add a WASM parser/disassembler for KolibriOS in x86 FASM.
Parses all 12 sections of the WASM binary format and prints out output.
Tested on real WASM binaries (QEMU).
Sections: type, import, function, table, memory, global, export,
start, element, data, custom.

Note:
leb128_decode_i64 is not implemented yet correctly
i64.const parser function is currently stubbed
Code section is currently being skipped

Add a WASM parser/disassembler for KolibriOS in x86 FASM. Parses all 12 sections of the WASM binary format and prints out output. Tested on real WASM binaries (QEMU). Sections: type, import, function, table, memory, global, export, start, element, data, custom. Note: leb128_decode_i64 is not implemented yet correctly i64.const parser function is currently stubbed Code section is currently being skipped
dannydod marked the pull request as ready for review 2026-03-30 18:22:29 +00:00
dannydod added 1 commit 2026-03-30 18:30:38 +00:00
wasm: add WASM 1.0 binary parser and disassembler
Build system / Check kernel codestyle (pull_request) Successful in 40s
Build system / Build (pull_request) Successful in 14m17s
e16589e95e
Implements a WASM 1.0 binary parser for KolibriOS written in x86 FASM.
Parses all 12 sections of the WASM binary format and prints
disassembly output. Tested against real WASM binaries.

Sections implemented: type, import, function, table, memory, global,
export, start, element, data, custom. Code section parsing is planned
for the next commit.
dannydod force-pushed wasm-parser from 46d867f307 to e16589e95e 2026-03-30 18:30:38 +00:00 Compare
Burer changed title from wasm: add WASM 1.0 binary parser and disassembler to [GSoC] apps/wasm: add WASM 1.0 binary parser and disassembler 2026-06-07 16:56:34 +00:00
All checks were successful
Build system / Check kernel codestyle (pull_request) Successful in 40s
Required
Details
Build system / Build (pull_request) Successful in 14m17s
Required
Details
Checking for merge conflicts…
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u http://git.kolibrios.org/dannydod/kolibrios wasm-parser:dannydod-wasm-parser
git checkout dannydod-wasm-parser
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: KolibriOS/kolibrios#397