Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 1.39 KB

README.md

File metadata and controls

43 lines (33 loc) · 1.39 KB

This is a toolchain for the T-class SHAKTI processor Shakti, based on LLVM. Currently only the framework is ready. Lots of changes are to be made. It includes a C/C++ compiler (clang), assembler, linker and debugger (lldb).

While this project includes a C/C++ compiler, the LLVM backend can support any language.

Building

Required Software

The following sections describe how to install these packages.

Building on Linux

You can install required packages using the built-in package manager (apt-get, yum, etc). As LLVM needs newer versions of many packages, you should be on a recent version of your Linux distribution. Instructions are below are for Ubuntu (which must be on at least version 16). You may need to change the package names for other distributions:

sudo apt-get install libxml2-dev cmake gcc g++ python bison flex \
    zlib1g-dev swig python-dev libedit-dev libncurses5-dev

$ git clone https://github.com/montimaj/ShaktiT_LLVM
$ cd ShaktiT_LLVM
$ mkdir build && cd build
$ cmake -G Ninja ../llvm
$ ninja

Special thanks to Nyuzi