wasm-emscripten
CommunityCompile C/C++ to WebAssembly
Authormohitmishra786
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill simplifies the process of compiling C/C++ code into WebAssembly (WASM) using the Emscripten toolchain, enabling web-based execution of native code.
Core Features & Use Cases
- C/C++ to WASM Compilation: Use
emccto generate.wasmfiles from C/C++ source. - Function Exporting: Expose C functions to JavaScript using
EXPORTED_FUNCTIONSandEXPORTED_RUNTIME_METHODS. - Memory Management: Configure WASM memory and stack sizes, and interact with C memory from JS.
- Asyncify: Adapt synchronous C code for asynchronous JavaScript environments.
- Debugging & Optimization: Build with debug info and optimize WASM binaries using
wasm-opt. - WASI vs Browser Targets: Differentiate and build for server-side (WASI) or browser environments.
- Use Case: Integrate a high-performance image processing library written in C++ into a web application by compiling it to WebAssembly with Emscripten.
Quick Start
Install Emscripten SDK and compile a C file named 'hello.c' to 'hello.js' and 'hello.wasm' using the 'emcc' command.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: wasm-emscripten Download link: https://github.com/mohitmishra786/low-level-dev-skills/archive/main.zip#wasm-emscripten Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.