Skip to content

Installation & Toolchain

Wysna compiles down to C99 and utilizes your operating system’s native C compiler (such as Clang, GCC, or Apple Clang) to produce optimized machine code or WASI WebAssembly binaries.

Before installing Wysna, ensure you have a standard C99 compiler available in your system path:

  • macOS: Install Apple Command Line Tools via Terminal:
    Terminal window
    xcode-select --install
  • Linux (Debian/Ubuntu):
    Terminal window
    sudo apt-get update && sudo apt-get install -y build-essential clang
  • Linux (Fedora/RHEL):
    Terminal window
    sudo dnf groupinstall "Development Tools"
  • Windows: Install Visual Studio with “Desktop development with C++” or MinGW-w64 / Clang.

Verify your C compiler is accessible:

Terminal window
clang --version
# or
gcc --version

You can install the official Wysna compiler toolchain directly from the repository:

Terminal window
git clone https://github.com/WashingtonYandun/Wysna.git
cd Wysna
./install.sh

The script builds the compiler binaries, installs the standard library modules, and registers the wysna command in your $HOME/.local/bin (or /usr/local/bin).

Open a fresh terminal window and test that the toolchain is accessible:

Terminal window
wysna --version

Output:

Wysna Compiler v0.5.0 (target: host-native)

You can inspect the environment configuration and supported compiler targets:

Terminal window
wysna env