Extra bytes to the compiled binary

71 views
Skip to first unread message

LPr Pontex

unread,
Nov 17, 2025, 6:03:31 AM (10 days ago) Nov 17
to lu...@googlegroups.com
Hello,
suppose I compiled a Lua script with luac.exe into a binary. Is it possible that I add some bytes to the end of the compiled binaty ("ab+" or similar mode in C; e.g. a time stamp) so that the binary is still valid to be loaded by the Lua bytecode loader?
TIA.
Best regards, Lukas

Luiz Henrique de Figueiredo

unread,
Nov 17, 2025, 7:30:48 PM (9 days ago) Nov 17
to lu...@googlegroups.com
> Is it possible that I add some bytes to the end of the compiled binaty ([...] e.g. a time stamp) so that the binary is still valid to be loaded by the Lua bytecode loader?

Yes. You can try it yourself:
$ echo 'print("hello")' | luac -
$ date >> luac.out
$ lua luac.out
hello
Reply all
Reply to author
Forward
0 new messages