Installing C3C
You can use one of the precompiled binaries or build the compiler from source.
Prebuilt binaries
- Windows x64 download, install instructions.
- Debian x64 download, install instructions.
- MacOS x64 download, install instructions.
Installing on Windows
-
Unzip it into a folder
-
If you don’t have Visual Studio 17 installed you can either install it or follow the next two steps.
-
Run the
msvc_build_libraries.py
Python script which will download the necessary files to compile on Windows.
optional: set c3c as a global enviornment variable
- copy the folder
- navigate to
C:\Program Files
- paste the folder here
- navigate inside the folder you’ve pasted
- copy the path of the folder
- search for “edit the system environment variables” on your computer
- click on the “environment variables” button on the bottom right
- under “user variables” double click on “path”
- click on “new” and paste the path to the folder
- run
c3c
on anywhere in your computer!
Installing on Debian
- Download tar file: https://github.com/c3lang/c3c/releases/download/latest/c3-linux.tar.gz (debug version here)
- Unpack executable and standard lib.
- Run
./c3c
.
Installing on Mac
- Make sure you have XCode with command line tools installed.
- Download the zip file: https://github.com/c3lang/c3c/releases/download/latest/c3-macos.zip (debug version here)
- Unzip executable and standard lib.
- Run
./c3c
.
Installing on Arch Linux
There is an AUR package for the c3c compiler : c3c-git.
Due to some issues with the LLVM packaged for Arch Linux, the AUR package will download and use LLVM 16 for Ubuntu-23.04 to compile the c3c compiler.
You can use your AUR package manager:
Or clone it manually: