[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: What's upcoming with Ravi
- From: Sean Conner <sean@...>
- Date: Sat, 23 Jun 2018 17:21:23 -0400
It was thus said that the Great Dibyendu Majumdar once stated:
> On 23 June 2018 at 20:51, Soni "They/Them" L. <firstname.lastname@example.org> wrote:
> > Would it be possible to implement CC-JIT support?
> If you mean compiling with external compiler then yes I suppose so,
> but that would mean creating some kind of shared library and loading
> code from that ... pretty inefficient.
There's always TCC , a library which can compile code into memory that
can be called directly. I have a Lua wrapper for it  and code on top of
that that allows the loading of C based modules directly from source code
, as well as making an easy to use API for compiling C code.
On the good side, TCC compliles *fast* . On the down side, the code it
produces is *not fast*. It's a trade off. And it's fun to play with.
 There was an older version that could boot the Linux kernel, from
source code, in under 10 seconds.