lua-users home
lua-l archive

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


> The question is now -- what am I going to do with a Lua parser? ;-)

A source-code optimizer? :)  Because local variables correspond to
registers in the virtual machine, there are several optimizations
that can be done at source level (assuming that ocasional metamethods
are well-behaved):

- constant-expression evaluation
- constant propagation
- moving loop invariants out of the loop
- CSE elimination
- minimization of number of local variables used by a function

-- Roberto