[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: L2: Lua compiler in the works
- From: "Humberto S. N. dos Anjos" <h.anjos@...>
- Date: Sun, 18 Nov 2007 23:43:18 -0300
I'm not sure how much a peephole optimizer can accomplish. Lua's bytecode generator already does a pretty good job, and the optimizations I intend to do work at the AST level, where the program's structure is readily available. After these optimizations, there isn't much left for a peephole optimizer to do...
On Nov 18, 2007 11:03 AM, Luiz Henrique de Figueiredo <email@example.com
> I am working in a Lua 5.1 optimizing compiler, written using Lua and LPeg,luac could use an optimizing module, but that would be mostly a peephole
optimizer on bytecode only (plus some global analysis). And it'd have to
be written in C. The experience with your optimizing compile could help
identify what optimizations are worth the trouble. Please share your findings.
Humberto S. N. dos Anjos
<insert witty quote here>