Skip to content

Repository files navigation

Wasm to C in Rocq

Building the compiler

  • Make sure you're running stuff in the Docker container; it should have all the necessary dependencies
  • make extract will build the compiler as compiler/wasm2c

Running the compiler

  • Once the compiler has been built, you can run it with ./compiler/wasm2c <file.wasm>
  • Pass --ast (./compiler/wasm2c --ast <file.wasm>) to print the Clight AST in Rocq-style syntax instead of C

File structure

  • theories/ contains the compiler written in Rocq, and proofs about it (coming soon!)
  • compiler/ contains the extracted OCaml code
  • examples/ contains some simple programs in Wasm, C, and WasmCert AST

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages