在函数内部,通过将esp复制到ebp(第62行)创建一个局部堆栈框架。
Once inside a function, a local stack frame is created by copying esp to ebp (line 62).
用来解析资源名称冲突的机制是:如果两个库jar文件都用相同的全局名称定义一个资源,那么则根据调用程序的堆栈帧来采用局部名称。
This mechanism is used to resolve resource-name conflicts: if two library JAR files define a resource with the same global name, the local names will be used based on the stack-frame of the caller.
可以在程序注册表中、每一个线程堆栈中的(基于堆栈的)局部变量中以及静态变量中找到根。
Roots can be found in program registers, in local (stack-based) variables in each thread's stack, and in static variables.
And, again, the rectangle represents your computer's RAM, the bottom represents the part of RAM that we generally call the stack, main conceptually ends up on the bottom of the stack followed foo by its local variables then the function say foo that it calls and on and on and on and up, but there is, in fact, something above all of this and we've seen this picture briefly and that's this thing called the heap.
再次,矩形表示的是计算机内存,底端表示内存的一部分,通常我们把它叫做堆栈,main函数在,堆栈的底端,之后是,它的局部变量,然后是它调用的函数,等等等等,但是那里有,实际上,在这个上面,我们粗略看看这个图画,这个东西叫做堆。
应用推荐