lua-users home
lua-l archive

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

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 <> wrote:
> 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>