[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Embedding Lua bytecode in C binary
- From: Renato Maia <maia@...>
- Date: Thu, 27 Nov 2008 13:32:23 -0200
On 27 Nov 2008, at 04:32, Grant Robinson wrote:
I was hoping to get some feedback of what approaches others here
have used, and what people have found that works best.
My guess is:
(a) if you want to embed general Lua scripts into a host application,
go for the 'bin2c' because it uses a very simple and flexible approach.
(b) if you want to create a library with pre-compiled Lua modules that
can be linked to different projects, be distributed as a general
library, or be dynamically loaded using the Lua 5.1 package model,
you'll find that LOOP pre-compiler and pre-loader scripts might help
you.
(c) if you want to create an executable file for an application
entirely or mainly written in Lua, check out Luiz's tools:
On 27 Nov 2008, at 06:52, Luiz Henrique de Figueiredo wrote:
Try my luac.lua to generate the bytecode and my srlua to embed it:
http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#luac.lua
http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#srlua
--
Renato Maia
PhD student at PUC-Rio
__________________________
http://www.inf.puc-rio.br/~maia/