3.3.0 • Published 7 years ago

wasmexplorer-wasm-compiler v3.3.0

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

wasmexplorer-wasm-compiler

Compile .c/++ files to .wasm format using WasmExplorer service by @mbebenita.

Usage

const compile = require('wasmexplorer-wasm-compiler');
// compile(srcFilepath, dstFilepath, compilerOptions = {});

Arguments

  1. srcFilepath: Absolute path to source file.
  2. dstFilepath: Absolute path to destination/compiled file.
  3. compilerOptions: Options to pass to compiler. See the table below.

Compiler Options

OptionTypeDefaultDescription
languagestringC99The language to use. One of C89, C99, C++98, C++11, C++14, C++1z
optimisationLevelstringsOptimisation level to apply. One of 0, 1, 2, 3, 4, s
cleanboolfalseGenerate clean WAST
fastMathboolfalseApproximate floating point calculations for faster execution (may yield incorrect results)
noInlineboolfalseDo not expand functions inline.
noRTTIboolfalseDo not generate runtime type information.
noExceptionsboolfalseDisable exception handling. try/catch will raise errors.
3.3.0

7 years ago

3.2.5

7 years ago

3.2.4

7 years ago

3.2.3

7 years ago

3.2.2

7 years ago

3.2.0

7 years ago

3.1.0

7 years ago

3.0.0

7 years ago

2.2.0

7 years ago

2.1.1

7 years ago

2.1.0

7 years ago

2.0.0

7 years ago

1.0.0

7 years ago