.
, . , .
, . .
| |
| More stack data |
| |
+------------------------+
| Method return address |
+------------------------+
| i | Stack frame
| j |
+------------------------+
<--- stack pointer
bp , [bp + 0] i [bp + 4] j.
, , .
(Note that this is detailed implementation information, and the JIT compiler can, for example, use a register to store a variable instead of space in the stack frame, and when a close appears in the picture, it changes things, but it works as a starting point for understanding how local variables work.)
Guffa source
share