lua-users home
lua-l archive

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


In a stack based VM (and I think in the pre 5.x lua version) an efficient way to pass parameters between function calls is via frame overlapping.
Since Lua 5 is register based I think that this method cannot be used, so how Lua pass parameters? And how a return value can be stored in the right caller register?

Thanks a lot.
--
Marco Bambini
http://www.sqlabs.com
http://twitter.com/sqlabs
http://instagram.com/sqlabs