Skip to Content
DocumentationLanguage GuideC / C++Installation
WASIX / LANGUAGE GUIDE

Install WASIX for C and C++

wasixcc  is the C and C++ compiler driver for WASIX. It configures Clang, the WASIX sysroot, and WebAssembly optimization tools for you.

Install wasixcc

On macOS or Linux, run the official installer:

curl -fsSL https://wasix.cc | sh

The installer places wasixcc and its dependencies in ~/.wasixcc. Follow its instructions to update your PATH, or open a new terminal after installation.

See the wasixcc installation options  for Cargo-based installation and CI setup.

Compile your first program

Save this as hello.c:

hello.c
#include <stdio.h> int main(void) { printf("Hello from WASIX!\n"); return 0; }

Compile it to a WebAssembly module:

wasixcc hello.c -o hello.wasm

For a C++ source file, use wasix++:

wasix++ hello.cpp -o hello.wasm

Run with Wasmer

Install Wasmer , then run the compiled module:

wasmer run hello.wasm

Next steps