[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: vmmerge
- From: "Nick Trout" <nick@...>
- Date: Wed, 4 Jul 2001 11:17:28 +0100
I've added a script to the Wiki which will merge Lua source code and the VM code
generated. Quite useful for anyone obsessed with optimisation! :-)
eg:
a = {}
b=a.x
print(b)
produces (using a simple merge):
a = {}
CREATETABLE 0
SETGLOBAL 0 ; a
b=a.x
GETGLOBAL 0 ; a
GETDOTTED 2 ; x
SETGLOBAL 1 ; b
print(b)
GETGLOBAL 3 ; print
GETGLOBAL 1 ; b
CALL 0 0
END
It also generates HTML output, see http://lua.swiki.net/79
Nick