lua-users home
lua-l archive

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


2015-11-04 3:53 GMT+02:00 Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br>:
>> Isn't Lua bytecode platform-agnostic?
>
> Not at all. It is very platform dependent.

At the top of a binary chunk appears information about the platform,
e.g. endianness, sizes of various integer types and so on. Would it
be possible to write a cross-recompiler exploiting Lua 5.3's string
pack/unpack that would convert bytecode for the same Lua version
from one architecture to another?