[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: luac - output into ONE bytecode file?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 17 Apr 2001 09:39:11 -0300 (EST)
>Chunks are fairly simple, can't you just concatenate the binary files
>together. As long as there are no symbol clashes it should be ok.
This was true in 3.2, but starting in 4.0, binary files can have only one
precompiled chunk. But this does not mean that a binary file cannot combine
several files; luac does exactly that: if you do "luac a b c d" then luac
generates a fake main program that does the equivalent of "dofile'a'; dofile'b'
dofile'c'; dofile'd'. Try luac -l.