Skip to content

lukewagner/asmjs2wasm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Sep 2, 2015
3faedda · Sep 2, 2015

History

3 Commits
Sep 2, 2015
Sep 2, 2015
Sep 2, 2015
Sep 2, 2015
Sep 2, 2015
Sep 2, 2015
Sep 2, 2015

Repository files navigation

asmjs2wasm

This repository contains the source for asmjs2wasm, a command-line tool that converts asm.js to the WebAssembly text format.

This tool is currently in development and incomplete

Current limitations of the tool:

  • The tool only accepts files containing a single top-level asm.js module function definition. To apply this tool to an arbitrary JS file containing an asm.js module, all the surrounding asm.js must be stripped out.
  • The tool assumes that the incoming asm.js has already been validated and may crash or generate wrong code otherwise.
  • Until the WebAssembly text format is finalized, the tool emits the temporary S-Expression-based text format defined by WebAssembly/spec.

Build

make

(Patches welcome to do something better.)

Run unit tets

make test

Usage

cat asmjs_file.js | asmjs2wasm > wasm_file.wasm

About

convert asm.js to WebAssembly text format

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages