Coder Social home page Coder Social logo

cling-build's Introduction

cling-build

This repository contains build script for the C++ interpreter cling and publishes pre-built binaries of it.

What Is Cling

Cling is an incredible C++ interpreter ideal for fast prototyping. It is a part of CERN Root Data Analysis Framework project, which provides pre-built binaries here but only for X86/64 machines. This repository provides binaries for ARM-based platforms built with chroot environment in release. You can also clone the script and build it yourself.

Usage

Download release tarball and extract or clone build script and run. The cling executable will be at release/bin/cling. For more usage of the interpreter, run command .help in the prompt.

Notes

  • Build prerequisite:

    libxml2 cmake git python2 libffi (libffi-dev on Debian-based distros)

  • Hardware to Run Manual build:

    LLVM is known for the extensive computing resources it takes to build it, and if you are working upon a QEMU, the cost will become even higher. It took about 5 hours and a half to build on my machine with a i5-8300h processor, enabling -j4 for make. The reason for not enabling -j8 is the spacial cost of building is high as well, which is prone to exhaust the memory with lots of threads enabled. Notice that the script enables nproc threads by default, and you may wish to pass an argument to limit it, e.g. ./build.sh 4.

Known Issues

It seems that cling would print characters not compatible with a serial console. In case you find problem using it on a device connected via a serial port, try out command below which executes cling within a wrapper:

script -qc ./cling | cat

Credits

The build script is a modification based on PKGBUILD of cling package in AUR by archibald869 and cling-all-in-one by Axel Naumann.

cling-build's People

Contributors

sdtelectronics avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

mfkiwl

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.