[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using Lighning instead of LLVM in Faust

From: Paul Cercueil
Subject: Re: Using Lighning instead of LLVM in Faust
Date: Sat, 29 Feb 2020 11:17:07 -0300

Le sam., févr. 29, 2020 at 14:05, Stéphane Letz <address@hidden> a écrit :

Reading the documentation I understand that Lightning is quite lower level (compared to MIR for instance) since the API directly deals with registers yes? So the API user has to so his own « register allocation/handling machinery »? There is no notion on an infinite set of variables that can be defined and used ?

One thing I will add - MIR and Lightning have different scopes; MIR is a JIT engine tailored for programming languages, while Lightning can be best described as a code generator. MIR would be unsuitable for some tasks Lightning is good for, e.g. writing dynamic recompilers. On the other hand, MIR provides much more support for implementing programming languages.

What would be interesting is a Lightning backend for MIR; then MIR would take care of IR optimization and register allocation, and it would run on the wide range of archs supported by Lightning.

- Paul


Le 24 févr. 2020 à 16:30, Paul Cercueil <address@hidden> a écrit :

 Hi Stéphane,

The current code would need some small changes to work without a MMU (does the ESP32 have one?) but for the rest Lightning does the job just fine.


Le dim., févr. 23, 2020 at 13:34, Stéphane Letz <address@hidden> a écrit :
I'm a investigating the use of Lighning instead of the already implemented LLVM code for the Faust compiler ( We have a class that translates an intermediate code in LLVM here: I would like to test Lighning instead. The goal is to have a simple JIT chain (even if slower compared to LLVM), simpler to deploy on OS like Android, possibly embedded devices like the Bela board (, ESP32 (, Teensy ( Is is a reasonable expectation in terms of what is currently possible and implemented in Lighning?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]