0.0.16 • Published 7 years ago
holyc v0.0.16
holyc
Installation
npm install -g holycThe first installation will be slow.
Usage for C++
holyc++ path/to/something.cppThe WASM binary will then be available at something.cpp.wasm.
Options
| name | description |
|---|---|
--show-wast | Show wast output |
--no-clean | Disable cleaning of intermediate formats |
FAQ
How does it compare to Emscripten
Emscripten is able to compile the libc where Holyc won't.
You can easily reproduce this benchmark by following C_to_wasm.
hello.c:
int main() {
return 0;
}Emscripten:
| file | size (bytes) |
|---|---|
| hello.wasm | 21856 |
| hello.js (loader) | 99710 |
Holyc:
| file | size (bytes) |
|---|---|
| hello.wasm | 78 |
| hello.js (loader) | unknown currently (see here for a hint) |