lua-users home
lua-l archive

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


Hello Florian,

    The answer, in my opinion, is not so if the functions have simple and
little code, and yes, always gain speed, if functions with big/normal code.
I'm researching on this subject, I'm trying to create a "lua2c" translator,
to translate lua code either to lua C API calls (lua_pushnumber, etc...) and
to mimics the behavior of lvm, but the code isn't useful yet, as I said, I'm
researching yet, learning the opcodes, etc...

    Of course, native code always beat interpreted code/bytecode.

                                                                God bless
you,


Leandro.

----- Original Message -----
From: "Florian Berger" <fberger@cs.joensuu.fi>
To: "Lua list" <lua@bazar2.conectiva.com.br>
Sent: Thursday, December 04, 2003 11:11 AM
Subject: Lua 5 and lua2c


>
> Hi.
>
> I'm using Lua 5 and I know that lua2c does not work for it. I'm
> interested about performance between Lua functions and Lua functions
> translated to C. Would I gain some extra speed if I translate some of
> existing Lua functions to C?
>
> Floru
>
>