Install Amalgame
Three ways to install the amc compiler depending on your system.
Latest stable version: v0.4.2 (see all releases)
Pre-built binary
The fastest. Download the archive matching your OS, extract, and place amc in your PATH.
🐧 Linux
- amc-0.4.2-linux-x86_64.tar.gz (146 KB)
🍎 macOS
- amc-0.4.2-macos-arm64.tar.gz (190 KB)
🪟 Windows
- amc-0.4.2-windows-x86_64.zip (7.3 MB)
Build from source
If you want to bootstrap yourself or if no binary is available for your OS.
Linux
sudo apt install gcc libgc-dev libcurl4-openssl-dev git clone https://github.com/amalgame-lang/Amalgame.git && cd Amalgame gcc -O2 -Iruntime snapshot/amc_lib.c -lgc -lm -lcurl -o snapshot/amc ./build_amc.sh ./amc --version
macOS
brew install bdw-gc curl
git clone https://github.com/amalgame-lang/Amalgame.git && cd Amalgame
GC_PREFIX=$(brew --prefix bdw-gc)
CURL_PREFIX=$(brew --prefix curl)
gcc -O2 -Iruntime -I"$GC_PREFIX/include" -I"$CURL_PREFIX/include" \
-L"$GC_PREFIX/lib" -L"$CURL_PREFIX/lib" \
snapshot/amc_lib.c -lgc -lm -lcurl -o amc
./amc --version
Windows (MSYS2 MINGW64)
pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-gc mingw-w64-x86_64-curl git clone https://github.com/amalgame-lang/Amalgame.git && cd Amalgame gcc -O2 -Iruntime snapshot/amc_lib.c -lgc -lm -lcurl -lws2_32 -o amc.exe ./amc.exe --version
What next?
Verify the installation with amc --version, then follow the tour to discover the language.