lua-users home
lua-l archive

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

Hi Eric,

On 11 September 2017 at 00:32, Erik Hougaard <> 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.