[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: How often does Lua bytecode change?
- From: bil til <biltil52@...>
- Date: Sat, 18 Nov 2023 23:07:09 +0100
Am Sa., 18. Nov. 2023 um 18:20 Uhr schrieb Luiz Henrique de Figueiredo
<lhf@tecgraf.puc-rio.br>:
>
> The definition of the VM is at https://www.lua.org/source/5.4/lopcodes.h.html.
... thanks for this very useful info (also your lines before...) ... I
did not see this file lopcodes.h before (I really googled quite a bit
to find a bit more details on Lua bytecode description), this really
looks fine.
To allow Luac Bytecode generator in a "compatible way" align the
bytecode of functions to 32bits or to the sizeo of "instruction words"
(for loadcode function in "lundump.c" to be able to keep this in ROM /
later load from ROM), it would be necessary possibly, that luac would
add some "dummy zero string" with a suitable number of dummy bytes
before any start of function code... . ... But I unfortunately have
not enough insight in the "more general byte order in such bytecode
files" to judge whether this is possible or not... .