lua-users home
lua-l archive

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


The Lua compiler for Lua 5.1+ already performs constant evaluation, but yes, it is possible to evaluate constant expressions that aren't already optimized.

On Thu, Dec 6, 2012 at 4:39 PM, martinwguy <martinwguy@gmail.com> wrote:
On 7 December 2012 02:04, Elijah Frederickson
<elijah.frederickson@gmail.com> wrote:
> Lua Assembly Tools is a library, in pure Lua, for bytecode manipulation.

That-s interesting. Would that make it possible to optimize the
bytecode post-compilation, to rewrite constant expressions with a
constant value and so on? If so, do you know of any work in this area?

   M




--
~mlnlover11~