Code Monkey home page Code Monkey logo

saphyr's Introduction

Saphyr Compiler

Build Status Scan Status Coverage Status

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

  • FlexC++
  • BisonC++
  • Boost -- Program_Options -- Filesystem
  • LLVM 3.8+
  • Make
  • C++11 compiler (either GCC or Clang)
  • Python 3 (for running tests)

Note: Building FlexC++/BisonC++ from sources requires the Icmake build system and the Bobcat library which requires a C++14 compiler.

Debian/Ubuntu

Debian 8 (Jessie) and Ubuntu 14.04 (Trusty) 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 clang python3

Gentoo

A local portage overlay containing bobcat/flexc++/bisonc++ is provided in scripts/portage. After adding the overlay run emerge saphyr to install all required dependencies.

Arch

FlexC++/BisonC++ can be found in the AUR along with their dependencies icmake and libbobcat. The other dependencies can be installed using:

pacman -S make llvm boost clang

Other Linux

Install: make, clang, llvm, boost and python3 for your Linux distribution. If your distribution doesn't have flexc++/bisonc++ then you can 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.

saphyr's People

Contributors

jdm64 avatar dritanium avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.