lua-users home
lua-l archive

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


I'm curious what kind of compiler optimizations Lua does when creating
the byte code, if any?

e.g.

x = 5 *  32 * i

becomes

x = 160 * i

internally.

-- 
-Patrick Donnelly

"One of the lessons of history is that nothing is often a good thing
to do and always a clever thing to say."

-Will Durant