Skip to content

jdm64/saphyr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Saphyr Compiler

Build Status Coverage Status Static Analysis Status Bugs

A C++ Like compiler using LLVM as a backend.

License

Unless otherwise stated the source code is licensed under the GPLv3 -- see LICENSE.

Build Dependencies

Debian/Ubuntu

Debian 10 (Buster) and Ubuntu 16.04 (Xenial) or newer have all the required packages in their repositories.

sudo apt-get install flexc++ bisonc++ make llvm-dev libboost-program-options-dev libboost-filesystem-dev libboost-system-dev clang python3

Other Linux (FlexC++/BisonC++)

If your Linux distro doesn't have flexc++/bisonc++ then you can download appimages of these programs:

You can also use the jdm64/saphyr docker image to build the frontend by running:

sudo make frontend-docker

NOTE: On Fedora you must disable SELinux (sudo setenforce 0) or you will get a permission error.

Build Instructions

Run make in the src directory and it will build the compiler binary saphyr.