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 | shThe 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.wasmFor a C++ source file, use wasix++:
wasix++ hello.cpp -o hello.wasmRun with Wasmer
Install Wasmer , then run the compiled module:
wasmer run hello.wasmNext steps
- Read the wasixcc usage and build-system guide for compiler flags, CMake, and Autotools integration.
- Explore the C examples.
- Browse WASIX builds and the wasinix package collection.