[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [Suggestion] Embed bytecode in source code
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 4 Nov 2015 08:11:55 -0200
> Would it be possible to write a cross-recompiler
Possible yes but unlikely to be a good way to spend your time.
(I did try it more than once.)
As I've mentioned several times in this list, I think the way to go in
the direction of portable bytecode is to replace ldump.c and lundump.c,
which are simple C modules that clearly separate the logical structure
of precompiled chunks from its physical structure. It is quite easy to
change to suit your needs. The problem is suiting everyone's needs.
See these for instance:
http://lua-users.org/lists/lua-l/2005-06/msg00073.html
http://lua-users.org/lists/lua-l/2005-06/msg00038.html
http://lua-users.org/lists/lua-l/2006-06/msg00189.html
and especially this one:
http://lua-users.org/lists/lua-l/2006-06/msg00205.html