lua-users home
lua-l archive

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


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.