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.
Prerequisites
Section titled “Prerequisites”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:
clang --version# orgcc --versionInstalling the Wysna CLI
Section titled “Installing the Wysna CLI”Quick Install (macOS & Linux)
Section titled “Quick Install (macOS & Linux)”You can install the official Wysna compiler toolchain directly from the repository:
git clone https://github.com/WashingtonYandun/Wysna.gitcd Wysna./install.shThe script builds the compiler binaries, installs the standard library modules, and registers the wysna command in your $HOME/.local/bin (or /usr/local/bin).
Verifying the Installation
Section titled “Verifying the Installation”Open a fresh terminal window and test that the toolchain is accessible:
wysna --versionOutput:
Wysna Compiler v0.5.0 (target: host-native)You can inspect the environment configuration and supported compiler targets:
wysna env