@ictrobot/c2wasm
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

c2wasm

Compiler demo

Other demos:

Features

Compiles most of c89 excluding nested typedefs and with reduced standard library and goto support.

Also supports the following c99 features:

  • Declarations anywhere inside blocks
  • _Bool / stdbool.h
  • stdint.h

License

MIT License.

Files in src/c_library/impl/libraries have their own licenses inside each folder.

Files in tests/benchmark/*/ also have their own licenses.

Compatibility

Compatible with Node.js 15.x and 16.x. On Windows, benchmarking is done in WSL.

Compatible with Node.js 14.x using the --experimental-wasm-bigint flag, which can be used to run the tests using npm test -- --node-arguments=--experimental-wasm-bigint. Benchmarking is not supported.

Readme

Keywords

none

Package Sidebar

Install

npm i @ictrobot/c2wasm

Weekly Downloads

2

Version

0.1.0

License

MIT

Unpacked Size

3.13 MB

Total Files

128

Last publish

Collaborators

  • ictrobot