https://github.com/apskhem/c-webassembly
A C-like programming language for writing WebAssembly–with mostly preserved original instructions, compiled into .wasm binary.
https://github.com/apskhem/c-webassembly
compiler programming-language wasm webassembly
Last synced: about 1 month ago
JSON representation
A C-like programming language for writing WebAssembly–with mostly preserved original instructions, compiled into .wasm binary.
- Host: GitHub
- URL: https://github.com/apskhem/c-webassembly
- Owner: apskhem
- License: apache-2.0
- Created: 2021-10-01T03:29:56.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-17T08:36:03.000Z (over 4 years ago)
- Last Synced: 2025-10-14T03:25:11.876Z (8 months ago)
- Topics: compiler, programming-language, wasm, webassembly
- Language: Rust
- Homepage:
- Size: 87.9 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
**C-WebAssembly** is a programming language designed specifically for writing WebAssembly in C-like syntax as close to the machine as possible, with manual table and memory management and native instructions. The language will be compiled into .wat or .wasm, without any boilerplate or over-generated code (except built-in libraries). With C-WebAssembly, it is possible to manage memory and table manually. The compiler aims to provide a zero-cost abstraction feature that guarantees compiled code is fully optimized.
### Sample Syntax
[view simple code sample](tests/samples/simple.cwal)