Skip to content
Back to Libraries

Emscripten

26k

LLVM-to-WebAssembly compiler toolchain

⚡ WASMWASM Runtime
License
MIT
Released
2011
Stars
26k

Use Cases

Port C/C++ libraries to web, compile games to browser, bring native code to JavaScript

Code Example

// Compile C code to WASM
// emcc hello.c -o hello.js -s WASM=1
#include <stdio.h>
int main() {
  printf("Hello from WASM!\n");
  return 0;
}

Related Libraries