A C++ Like compiler using LLVM as a backend.
Unless otherwise stated the source code is licensed under the GPLv3 -- see LICENSE.
- FlexC++
- BisonC++
- Boost
- Program_Options
- Filesystem
- System
- LLVM 8+
- Make
- C++14 compiler (either GCC or Clang)
- Python 3 (for running tests)
- Saphyr-libs (for tests)
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
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.
Run make
in the src directory and it will build the compiler binary saphyr
.