Changes between Version 44 and Version 45 of Commentary/Compiler/StackAreas
- Jun 30, 2008 3:20:08 PM (7 years ago)
v44 v45 58 58 To name a specific location on the stack, we represent its address with a new kind of `CmmExpr`: the `CmmStackSlot`. A `CmmStackSlot` is just an integer offset into an `Area`. Each stack area grows down, with offset 0 pointing to the old end of the area. If we wanted to place a 4-byte object at the old end of the area, we would address it using the offset 4. 59 59 60 ```STACK PICTURE HERE.``` 60 [[Image(CallArea.png)]] 61 61 62 62 63 Note: If the `Area` is a `RegSlot`, we might still use a non-zero offset: for example, we might want to load the low word from a long integer.