Re: glue the bytecode with lua
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: glue the bytecode with lua
- From: Dirk Laurie <dirk.laurie@...>
- Date: 2017年3月24日 10:15:34 +0200
2017年03月24日 10:03 GMT+02:00 Andreas Mueller
<Andreas.Mueller@biologie.uni-osnabrueck.de>:
> is there a way to glue the bytecode (created with luac) together with lua?
>
> (To get one file to give it to my users)
Yes and no.
Yes, because you can dump the bytecode to a string and manipulate it
with string.unpack and string.pack. Luiz's lbci library
http://webserver2.tecgraf.puc-rio.br/~lhf/ftp/lua/5.3/lbci.tar.gz
makes the task easier.
No, because the information about bytecode structure is not officially
documented outside the Lua source. Luiz's library is authoritative, of
course, but not official.