Changes between Version 1 and Version 2 of Commentary/Rts/HaskellExecution/Registers
- Feb 17, 2011 5:46:11 PM (3 years ago)
v1 v2 8 8 * `Hp` points to the byte before the first free byte in the (contiguous) allocation space. 9 9 10 * `HpLim` points to the last available byte in the current chunk of allocation space (see [[ref(Heap/Stack check failures)]]). 10 * `HpLim` points to the last available byte in the current chunk of allocation space. 11 11 12 12 * `Sp` points to the youngest allocated byte of stack. The stack grows downwards. Why? Because that means a return address is at a lower address than the stack frame it "knows about", and that in turn means that we can treat a stack frame very like a heap object, with an info pointer (return address) as its first word.