Download SLangCC

Download the prebuilt SLangCC compiler.

Latest release

Latest release

SLangCC v0.1.0

Native compiler for 64-bit x86 Linux systems.

Available
Platform Linux Architecture x86-64 Format .tar.gz

Note: SLangCC v0.1.0 supports only 64-bit x86 Linux (x86-64).

Archive contents

slangcc-v0.1.0-linux-x86_64/
├── bin/
│   └── slangcc
├── codegen/
│   └── runtime.o
└── tests/
    └── hello.sl

Keep the extracted directory structure intact. slangcc locates codegen/runtime.o relative to the real location of bin/slangcc. You may symlink bin/slangcc or add its directory to PATH, but do not copy or move the executable by itself.

System requirements

The prebuilt SLangCC v0.1.0 binary requires:

  • x86-64 Linux
  • glibc 2.38 or later
  • libstdc++ providing GLIBCXX_3.4.32 or later
  • GCC or Clang available through PATH
  • permission to execute the downloaded compiler

SLangCC emits x86-64 Linux assembly and invokes GCC first, or Clang when GCC is unavailable, to assemble and link each program.

Check your system

To check your glibc version:

ldd --version
strings $(g++ -print-file-name=libstdc++.so.6) \
    | grep '^GLIBCXX_' | sort -V | tail

To check the newest GLIBCXX version provided by your installed libstdc++:

GLIBC_2.38
GLIBCXX_3.4.32

Download with curl

Download the release archive and its checksum from a terminal:

curl -LO https://www.slangcc.com/downloads/slangcc-v0.1.0-linux-x86_64.tar.gz
curl -LO https://www.slangcc.com/downloads/slangcc-v0.1.0-linux-x86_64.sha256

-L follows HTTP redirects, and -O saves each download using its published filename.

Verify the download

Download both files into the same directory, then run:

sha256sum -c slangcc-v0.1.0-linux-x86_64.sha256

Expected result:

slangcc-v0.1.0-linux-x86_64.tar.gz: OK

Install

Extract the archive:

tar -xzf slangcc-v0.1.0-linux-x86_64.tar.gz

For a system-wide installation, keep the package directory intact and create a command symlink:

sudo mv slangcc-v0.1.0-linux-x86_64 /opt/
sudo ln -s /opt/slangcc-v0.1.0-linux-x86_64/bin/slangcc /usr/local/bin/slangcc

You can then compile from any working directory:

cd /path/to/project
slangcc program.sl -o program
./program

The compiler locates codegen/runtime.o relative to its installed executable, so the package does not need to be copied into each project.

To install without sudo, add the extracted bin/ directory to PATH instead:

export PATH="/absolute/path/to/slangcc-v0.1.0-linux-x86_64/bin:$PATH"

Add that export to ~/.bashrc or ~/.zshrc to make it persistent.