Skip to content

kai-language/kai-c

Repository files navigation

Kai

An expressive low level programming language.

Community

Join our community on Discord.

Getting Started

In the future, we plan to have binary releases for all 3 platforms. Until then, you will have to install Kai from source.

System Requirements

Currently, the actively supported platforms are macOS, Windows and Ubuntu (18.04 LTS).

macOS

To build on macOS it's recommended that you have the latest Xcode and have installed the command-line tools.

You will also need LLVM 6.0, which can be installed via a package manager:

Homebrew

brew install llvm@6.0

and then add the following to your ~/.bash_profile:

export PATH="/usr/local/opt/llvm/bin:$PATH"

Linux

To build on Ubuntu Linux you will need to have LLVM 6.0, Clang and libz installed. All of which can be installed using apt:

apt-get install llvm-6.0-dev clang libz-dev 

Working on Kai

Building

Commandline

make
make tests
make release

Xcode

If you wish to use Xcode to work on Kai on macOS there is an included .xcodeproj file configured to build in the same manner as the Makefile. If you add any files make sure you do not include them in the target directly in xcode, instead go to main.c and #include them there. We do this to keep the number of object files clang produces to a minimum. Less compiler work means quicker compile times ​👍​.

You may need to make changes tot he scheme in order to point the compiler to the files you wish to compile.

Windows

On Windows there is build.bat. At the moment, the script does not support anything other than building a debug build.

About

The Kai programming language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •