# holyc **Repository Path**: mirrors_xtuc/holyc ## Basic Information - **Project Name**: holyc - **Description**: An easy to use C++ to WASM compiler (Highly-experimental) - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-26 - **Last Updated**: 2026-02-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # holyc ## Installation ```sh npm install -g holyc ``` The first installation will be slow. ## Usage for C++ ```sh holyc++ path/to/something.cpp ``` The `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](https://developer.mozilla.org/en-US/docs/WebAssembly/C_to_wasm). hello.c: ```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](https://github.com/xtuc/holyc/blob/master/examples/dom/index.html#L20-L52) for a hint) |