[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: I'm totally baffled.
- From: Roberto Ierusalimschy <roberto@...>
- Date: Fri, 12 Nov 2004 14:48:02 -0200
> 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