Installation
Install the prebuilt cnegc binary from GitHub Releases. No build tools required for checking and IR dumping. Native output needs Clang.
Download
Go to github.com/cnegative/cnegative/releases ↗ and pick the archive for your platform:
| Platform | Archive |
|---|---|
| Linux | cnegc-<tag>-linux-x86_64.zip |
| macOS | cnegc-<tag>-macos-arm64.zip |
| Windows | cnegc-<tag>-windows-x86_64.zip |
Linux
shell
unzip cnegc-v0.5.2-linux-x86_64.zip
mkdir -p "$HOME/.local/bin"
cp release/cnegc/cnegc "$HOME/.local/bin/"
chmod +x "$HOME/.local/bin/cnegc"If ~/.local/bin isn't on your PATH, add this to your shell config:
shell
export PATH="$HOME/.local/bin:$PATH"macOS
shell
unzip cnegc-v0.5.2-macos-arm64.zip
mkdir -p "$HOME/.local/bin"
cp release/cnegc/cnegc "$HOME/.local/bin/"
chmod +x "$HOME/.local/bin/cnegc"If ~/.local/bin isn't on your PATH, add this to your shell config:
shell
export PATH="$HOME/.local/bin:$PATH"Windows
powershell
# Extract to a stable folder, e.g. C:\tools\cnegc\
# Add that folder to your user PATH
cnegc.exe # verify it worksWhat's in the release
cnegc/cnegc.exeLICENSE,README.mddocs/how-to-run-and-build.md
native output requires clang
check, ir, and llvm-ir need only cnegc. To emit objects or link binaries, you also need clang-18 or clang on your PATH.
After install
- use Quick Start to write the first program
- use Build & Run for source builds, tests, and command details