nC_Systems programming language

Native bootstrap kits

Download ncc.

Get the ncc compiler for the nC programming language. Choose a V168 R4 archive for your operating system. The standalone Linux package includes its runtime in the compiler and in the programs you build.

Windows x86-64

Windows

Native PE compiler and DLL provider. Keep both files in the same directory.

Download ZIP ↓
Linux x86-64

Linux standalone

Build and run on Alpine, Ubuntu and WSL. Programs use the embedded runtime.

Download standalone TAR.GZ

GNU shared-runtime edition · glibc 2.34+

Install from the terminal

Choose your shell and copy the entire command. It checks your operating system and processor, verifies the package and installs ncc for your user. After installation, run ncc self-test.

Windows · PowerShell
powershell
& {
    $ErrorActionPreference = 'Stop'
    if ([Environment]::OSVersion.Platform -ne 'Win32NT' -or [Environment]::GetEnvironmentVariable('PROCESSOR_ARCHITECTURE','Machine') -ne 'AMD64') { throw 'Requires Windows x86-64.' }
    $url = 'https://github.com/https-ncc-lenguage-org/nc/releases/download/v0.1.0-bootstrap.168.r4/ncc-v168-r4-windows-x86_64-user.msi'
    $sha = '7c914937b390101882b32c6379f96f8df78e765f5e8960685cf1f0008dc901ef'
    $cache = [IO.Directory]::CreateDirectory((Join-Path $env:LOCALAPPDATA 'nC\packages')).FullName
    $msi = Join-Path $cache ([IO.Path]::GetFileName(([Uri]$url).AbsolutePath))
    $part = $msi + '.' + [Guid]::NewGuid().ToString('N') + '.part'
    $verify = { param($file) $h = [Security.Cryptography.SHA256]::Create(); try { if ([BitConverter]::ToString($h.ComputeHash([IO.File]::ReadAllBytes($file))).Replace('-','') -ne $sha) { throw 'SHA-256 mismatch.' } } finally { $h.Dispose() } }
    try {
        if (-not [IO.File]::Exists($msi)) {
            Invoke-WebRequest -UseBasicParsing -Uri $url -OutFile $part
            & $verify $part
            try { [IO.File]::Move($part,$msi) } catch [IO.IOException] { if (-not [IO.File]::Exists($msi)) { throw } }
        }
        & $verify $msi
        $argsMsi = '/i ' + [char]34 + $msi + [char]34 + ' /qn /norestart'
        $result = Start-Process -FilePath (Join-Path ([Environment]::SystemDirectory) 'msiexec.exe') -ArgumentList $argsMsi -Wait -PassThru
        if ($result.ExitCode -ne 0) { throw ('Windows Installer returned ' + $result.ExitCode) }
        $bin = Join-Path $env:LOCALAPPDATA 'nC\toolchains\windows-x86_64\bin'
        $env:PATH = $bin + [IO.Path]::PathSeparator + $env:PATH
        & (Join-Path $bin 'ncc.exe') self-test
        if ($LASTEXITCODE -ne 0) { throw 'ncc self-test failed.' }
    } finally {
        if ([IO.File]::Exists($part)) { [IO.File]::Delete($part) }
    }
}
Windows · Command Prompt
batch
powershell.exe -NoProfile -NonInteractive -Command "$ErrorActionPreference = 'Stop'; if ([Environment]::OSVersion.Platform -ne 'Win32NT' -or [Environment]::GetEnvironmentVariable('PROCESSOR_ARCHITECTURE','Machine') -ne 'AMD64') { throw 'Requires Windows x86-64.' }; $url = 'https://github.com/https-ncc-lenguage-org/nc/releases/download/v0.1.0-bootstrap.168.r4/ncc-v168-r4-windows-x86_64-user.msi'; $sha = '7c914937b390101882b32c6379f96f8df78e765f5e8960685cf1f0008dc901ef'; $cache = [IO.Directory]::CreateDirectory((Join-Path $env:LOCALAPPDATA 'nC\packages')).FullName; $msi = Join-Path $cache ([IO.Path]::GetFileName(([Uri]$url).AbsolutePath)); $part = $msi + '.' + [Guid]::NewGuid().ToString('N') + '.part'; $verify = { param($file) $h = [Security.Cryptography.SHA256]::Create(); try { if ([BitConverter]::ToString($h.ComputeHash([IO.File]::ReadAllBytes($file))).Replace('-','') -ne $sha) { throw 'SHA-256 mismatch.' } } finally { $h.Dispose() } }; try { if (-not [IO.File]::Exists($msi)) {     Invoke-WebRequest -UseBasicParsing -Uri $url -OutFile $part;     & $verify $part;     try { [IO.File]::Move($part,$msi) } catch [IO.IOException] { if (-not [IO.File]::Exists($msi)) { throw } } }; & $verify $msi; $argsMsi = '/i ' + [char]34 + $msi + [char]34 + ' /qn /norestart'; $result = Start-Process -FilePath (Join-Path ([Environment]::SystemDirectory) 'msiexec.exe') -ArgumentList $argsMsi -Wait -PassThru; if ($result.ExitCode -ne 0) { throw ('Windows Installer returned ' + $result.ExitCode) }; $bin = Join-Path $env:LOCALAPPDATA 'nC\toolchains\windows-x86_64\bin'; $env:PATH = $bin + [IO.Path]::PathSeparator + $env:PATH; & (Join-Path $bin 'ncc.exe') self-test; if ($LASTEXITCODE -ne 0) { throw 'ncc self-test failed.' } } finally { if ([IO.File]::Exists($part)) { [IO.File]::Delete($part) } }" && set "PATH=%LOCALAPPDATA%\nC\toolchains\windows-x86_64\bin;%PATH%"
Alpine, Ubuntu and WSL · sh or Bash
bash
export PATH="$HOME/.local/bin:$PATH"
(
  set -eu
  [ "$(uname -s)/$(uname -m)" = Linux/x86_64 ] || { echo "Requires Linux x86-64." >&2; exit 1; }
  data=${XDG_DATA_HOME:-"$HOME/.local/share"}
  case "$data" in /*) ;; *) data="$HOME/.local/share" ;; esac
  parent="$data/nC/toolchains/linux-x86_64"
  dest="$parent/V168-R4-standalone.1"
  mkdir -p -- "$parent"
  stage=$(mktemp -d -- "$parent/.install.XXXXXXXX")
  trap 'rm -rf -- "$stage"' 0
  url='https://github.com/https-ncc-lenguage-org/nc/releases/download/v0.1.0-bootstrap.168.r4/ncc-v168-r4-linux-x86_64-standalone.1.tar.gz'
  if command -v curl >/dev/null 2>&1; then
    curl -fsSL --proto '=https' "$url" -o "$stage/package"
  else
    wget -O "$stage/package" "$url"
  fi
  (cd "$stage" && printf '%s  package\n' '93763cf90826dcf75d6a873ec43bb04ead8a6be6bbfdb068d7aa0c9f4f4c355d' | sha256sum -c - >/dev/null)
  mkdir -- "$stage/files"
  tar -xzf "$stage/package" -C "$stage/files"
  "$stage/files/ncc" self-test
  bin="$HOME/.local/bin"
  mkdir -p -- "$bin"
  if [ -e "$bin/ncc" ] || [ -L "$bin/ncc" ]; then
    previous=$(readlink "$bin/ncc") || { echo "Another ncc already occupies $bin/ncc." >&2; exit 1; }
    case "$previous" in
      "$dest/ncc"|"$parent/V168-R4/ncc") ;;
      *) echo "Another ncc already occupies $bin/ncc." >&2; exit 1 ;;
    esac
  fi
  [ ! -L "$dest" ] || { echo "The installation directory is a symlink." >&2; exit 1; }
  if [ ! -d "$dest" ]; then mv -Tn -- "$stage/files" "$dest" || [ -d "$dest" ]; fi
  if [ -d "$stage/files" ]; then diff -qr -- "$stage/files" "$dest"; fi
  if [ "$(readlink "$bin/ncc" 2>/dev/null || :)" = "$parent/V168-R4/ncc" ]; then
    ln -sfnT "$dest/ncc" "$bin/ncc"
  else
    ln -sT "$dest/ncc" "$bin/ncc" 2>/dev/null || [ "$(readlink "$bin/ncc")" = "$dest/ncc" ]
  fi
  profile="$HOME/.profile"
  for file in "$HOME/.bash_profile" "$HOME/.bash_login"; do
    if [ -f "$file" ]; then profile=$file; break; fi
  done
  line='case ":$PATH:" in *":$HOME/.local/bin:"*) ;; *) export PATH="$HOME/.local/bin:$PATH" ;; esac'
  if ! grep -Fqx -- "$line" "$profile" 2>/dev/null; then printf '\n%s\n' "$line" >> "$profile"; fi
  "$bin/ncc" self-test
)

Windows installs in %LOCALAPPDATA%\nC\toolchains\windows-x86_64\bin. Linux installs under $XDG_DATA_HOME/nC, defaulting to ~/.local/share/nC, and exposes ~/.local/bin/ncc.

Windows per-user installer (.msi) ↓

Optional nC mini kernel

Install the x86-64 BIOS image, ELF and matching source from the 22 August 2026 kernel build. The package stores them in your user profile. Boot the image in a QEMU guest with the command in its README.

Windows · PowerShell
powershell
& {
    $ErrorActionPreference = 'Stop'
    if ([Environment]::OSVersion.Platform -ne 'Win32NT' -or [Environment]::GetEnvironmentVariable('PROCESSOR_ARCHITECTURE','Machine') -ne 'AMD64') { throw 'Requires Windows x86-64.' }
    $url = 'https://github.com/https-ncc-lenguage-org/nc/releases/download/v0.1.0-bootstrap.168.r4/nc-kernel-mini-20260822-x86_64-bios-user.msi'
    $sha = '188b4ee519043f6db179a0146eabe43b61a45f0d18b58aefd78033a9e5bf9780'
    $cache = [IO.Directory]::CreateDirectory((Join-Path $env:LOCALAPPDATA 'nC\packages')).FullName
    $msi = Join-Path $cache ([IO.Path]::GetFileName(([Uri]$url).AbsolutePath))
    $part = $msi + '.' + [Guid]::NewGuid().ToString('N') + '.part'
    $verify = { param($file) $h = [Security.Cryptography.SHA256]::Create(); try { if ([BitConverter]::ToString($h.ComputeHash([IO.File]::ReadAllBytes($file))).Replace('-','') -ne $sha) { throw 'SHA-256 mismatch.' } } finally { $h.Dispose() } }
    try {
        if (-not [IO.File]::Exists($msi)) {
            Invoke-WebRequest -UseBasicParsing -Uri $url -OutFile $part
            & $verify $part
            try { [IO.File]::Move($part,$msi) } catch [IO.IOException] { if (-not [IO.File]::Exists($msi)) { throw } }
        }
        & $verify $msi
        $argsMsi = '/i ' + [char]34 + $msi + [char]34 + ' /qn /norestart'
        $result = Start-Process -FilePath (Join-Path ([Environment]::SystemDirectory) 'msiexec.exe') -ArgumentList $argsMsi -Wait -PassThru
        if ($result.ExitCode -ne 0) { throw ('Windows Installer returned ' + $result.ExitCode) }
        Write-Output (Join-Path $env:LOCALAPPDATA 'nC\kernels\x86_64-unknown-none\mini-bios-20260822')
    } finally {
        if ([IO.File]::Exists($part)) { [IO.File]::Delete($part) }
    }
}
Windows · Command Prompt
batch
powershell.exe -NoProfile -NonInteractive -Command "$ErrorActionPreference = 'Stop'; if ([Environment]::OSVersion.Platform -ne 'Win32NT' -or [Environment]::GetEnvironmentVariable('PROCESSOR_ARCHITECTURE','Machine') -ne 'AMD64') { throw 'Requires Windows x86-64.' }; $url = 'https://github.com/https-ncc-lenguage-org/nc/releases/download/v0.1.0-bootstrap.168.r4/nc-kernel-mini-20260822-x86_64-bios-user.msi'; $sha = '188b4ee519043f6db179a0146eabe43b61a45f0d18b58aefd78033a9e5bf9780'; $cache = [IO.Directory]::CreateDirectory((Join-Path $env:LOCALAPPDATA 'nC\packages')).FullName; $msi = Join-Path $cache ([IO.Path]::GetFileName(([Uri]$url).AbsolutePath)); $part = $msi + '.' + [Guid]::NewGuid().ToString('N') + '.part'; $verify = { param($file) $h = [Security.Cryptography.SHA256]::Create(); try { if ([BitConverter]::ToString($h.ComputeHash([IO.File]::ReadAllBytes($file))).Replace('-','') -ne $sha) { throw 'SHA-256 mismatch.' } } finally { $h.Dispose() } }; try { if (-not [IO.File]::Exists($msi)) {     Invoke-WebRequest -UseBasicParsing -Uri $url -OutFile $part;     & $verify $part;     try { [IO.File]::Move($part,$msi) } catch [IO.IOException] { if (-not [IO.File]::Exists($msi)) { throw } } }; & $verify $msi; $argsMsi = '/i ' + [char]34 + $msi + [char]34 + ' /qn /norestart'; $result = Start-Process -FilePath (Join-Path ([Environment]::SystemDirectory) 'msiexec.exe') -ArgumentList $argsMsi -Wait -PassThru; if ($result.ExitCode -ne 0) { throw ('Windows Installer returned ' + $result.ExitCode) }; Write-Output (Join-Path $env:LOCALAPPDATA 'nC\kernels\x86_64-unknown-none\mini-bios-20260822') } finally { if ([IO.File]::Exists($part)) { [IO.File]::Delete($part) } }"
Alpine, Ubuntu and WSL · sh or Bash
bash
(
  set -eu
  [ "$(uname -s)/$(uname -m)" = Linux/x86_64 ] || { echo "Requires Linux x86-64." >&2; exit 1; }
  data=${XDG_DATA_HOME:-"$HOME/.local/share"}
  case "$data" in /*) ;; *) data="$HOME/.local/share" ;; esac
  parent="$data/nC/kernels/x86_64-unknown-none"
  dest="$parent/mini-bios-20260822"
  mkdir -p -- "$parent"
  stage=$(mktemp -d -- "$parent/.install.XXXXXXXX")
  trap 'rm -rf -- "$stage"' 0
  url='https://github.com/https-ncc-lenguage-org/nc/releases/download/v0.1.0-bootstrap.168.r4/nc-kernel-mini-20260822-x86_64-bios.tar.gz'
  if command -v curl >/dev/null 2>&1; then
    curl -fsSL --proto '=https' "$url" -o "$stage/package"
  else
    wget -O "$stage/package" "$url"
  fi
  (cd "$stage" && printf '%s  package\n' 'aac52831dbd6628f040024288583766df9f255fda4fc759e650ca7efae87bd26' | sha256sum -c - >/dev/null)
  mkdir -- "$stage/files"
  tar -xzf "$stage/package" -C "$stage/files"
  [ ! -L "$dest" ] || { echo "The installation directory is a symlink." >&2; exit 1; }
  if [ ! -d "$dest" ]; then mv -Tn -- "$stage/files" "$dest" || [ -d "$dest" ]; fi
  if [ -d "$stage/files" ]; then diff -qr -- "$stage/files" "$dest"; fi
  printf 'Installed the nC mini kernel in %s\n' "$dest"
)

Kernel MSI for Windows · Kernel image archive · Guest boot guide · Package checksums

Before you start

Verify your archive using Windows and GNU checksums or Linux standalone checksums. The installation guide walks through compiling your first program.

Notes, hashes and instructions ↗

Working from source

Download the matching compiler sources for the release. For Linux standalone, use the standalone compiler and runtime sources.

Toolchain setup ↗

Read without installing

Both manuals are available in the library and as PDFs. Machine examples containing privileged instructions are provided for analysis and inspection.

Open the library ↗

Search nC