1.0.6 • Published 1 year ago

ctowasm v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

ctowasm

C compiler to Webassembly

Instructions

Build

Run yarn first to download all dependencies. Then run yarn build to build the bundle. All the final bundle will be in a single index.js file in the /build folder

Commands

Here are some commands you can run during development for testing and using ctowasm locally.

yarn compile < C input filepath > [-o <output filepath>] - compiles the c program specified by the filepath, and places output at specified filepath (output/a.out by default)

yarn generate-c-ast < C input filepath > [-o <output filepath>] - generates the C AST for the input file, and converts it to JSON and stores the output in specified filepath (output/c-ast.json) by default.

yarn generate-wat-ast < C input filepath > [-o <output filepath>] - generates the WAT AST for the input file, and converts it JSON and stores the output in the specified filepath (output/wat-ast.json) by default

1.0.6

1 year ago

1.0.2

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago