Code Monkey home page Code Monkey logo

asmjs2wasm's Introduction

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

asmjs2wasm's People

Contributors

lukewagner avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.