top | item 19128349

(no title)

denniskane | 7 years ago

I have a similar kind of functionality in Linux on the Web, but dealing with parsing wasm (web assembly) files. There is a desktop environment, but I think it is best to use the shell environment at https://linuxontheweb.org/shell.os.

First, do this:

$ cp /site/root/system/wasms/games/binjgb.wasm .

The system is built around the concept of command libraries. You are going to need to import the wasm library like this:

$ import wasm

This loads a fairly powerful command called parsewasm. To get an informational printout of the toplevel sections in that file, run the command:

$ parsewasm --toplevel binjgb.wasm

There are lots of other subcommands in parsewasm, but the coolest part is that you can list out the names of exported functions and then dump out the code bodies of whatever functions you want to inspect.

discuss

order

No comments yet.