[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Starting a JIT backend for Ravi yet again
- From: Dibyendu Majumdar <mobile@...>
- Date: Mon, 11 Sep 2017 01:07:04 +0100
On 11 September 2017 at 00:32, Erik Hougaard <email@example.com> wrote:
> On 10-Sep-17 1:45 PM, Dibyendu Majumdar wrote:
>> So now I am doing just that. The new backend is being written to
>> generate C code,
> But there are already several projects that do that:
> What am I missing?
Couple of things really.
Firstly C is just being used as the "assembler", as it is just more
convenient to transform from C into the final code.
Secondly the translation is not to a bunch of Lua api calls. I would
suggest to have a close look at the example C output I showed, in
particular how the for loop is handled.