The compiler, its standard library and runtime in one package for Linux, macOS and Windows. Free and open source under the MIT license.
Install with one command
The installer downloads the latest release for your machine, checks its SHA-256 checksum, puts it in your home folder and adds marlin to your PATH. Run it again to update.
Your system
Linux
x86-64 and ARM64 · glibc 2.28 or newer (Ubuntu 20.04, Debian 10, RHEL 8, Fedora, Arch …)
terminal
$ curl -fsSL https://github.com/MehmetEminKaymaz/marlin/releases/latest/download/install.sh | sh
You also need a C compiler: sudo apt install build-essential, sudo dnf install gcc or sudo pacman -S base-devel.
Prefer to do it by hand? Download the archive for your system above, unpack it anywhere and add its bin folder to your PATH. On macOS, remove the browser's quarantine flag first: xattr -dr com.apple.quarantine marlin-*.
After installing
Open a new terminal
So that the PATH change takes effect.
Check your setup
marlin doctor compiles a few small programs and tells you what is missing, with the command to install it.
Syntax colouring, snippets, live errors from the real compiler and a one-key Compile & Run. Install Marlin first; the extension uses the marlin command.
Marlin links your programs with Clang and the Microsoft C libraries. If marlin doctor reports that the linker is missing, this installs both (about 3 GB):
Already have Visual Studio? Add the Desktop development with C++ workload and the C++ Clang tools for Windows component in the Visual Studio Installer instead.
Update, uninstall, verify
Linux / macOS
Windows (PowerShell)
Update
run the install command again
run the install command again
Uninstall
curl -fsSL https://github.com/MehmetEminKaymaz/marlin/releases/latest/download/install.sh | sh -s -- --uninstall