A question about Lua's register allocation
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: A question about Lua's register allocation
- From: Dibyendu Majumdar <mobile@...>
- Date: 2018年3月17日 09:36:47 +0000
An aspect of the Lua's code generator I don't fully understand are the
rules around register allocation. It appears that code generator does
not keep a list of free registers, instead the registers are treated
as a stack, so you have (in what cases?) free registers in stack
order.
My question is - suppose instead I maintain free list of registers and
not worry about stack order - are there any gotchas with that?
Thanks and Regards
Dibyendu