Gra*_*ene 6 python lua bytecode disassembly
在Python中,您可以使用查看用户定义函数的已编译字节码dis.
Lua有内置的等价物吗?
这真的很有用!
luac标准lua附带的实用程序可以使用其-l选项从Lua源创建程序集列表.例如,从源代码编译stdin:
C:...> echo a=b | luac -l -
main (3 instructions, 12 bytes at 00334C30)
0+ params, 2 slots, 0 upvalues, 0 locals, 2 constants, 0 functions
1 [1] GETGLOBAL 0 -2 ; b
2 [1] SETGLOBAL 0 -1 ; a
3 [1] RETURN 0 1
C:...>
| 归档时间: |
|
| 查看次数: |
1069 次 |
| 最近记录: |