通常,它们以程序所知的可用的一组“基本”数据——栈数据、全局变量、寄存器——作为出发点。
Generally, they start off with a "base" set of data that is known to be available to the program — stack data, global variables, and registers.
这个跟踪以根集 开始,它由一些内部结构组成,比如线程栈和对象的全局引用。
This tracing starts with the root set, which consists of internal structures such as thread stacks and global references to objects.
然后,lua_setglobal函数将栈顶的值赋给一个有名称的全局变量。
The lua_setglobal function then assigns the top value on the stack to a named global variable.
应用推荐