Changes between Version 44 and Version 45 of Commentary/Compiler/StackAreas


Ignore:
Timestamp:
Jun 30, 2008 3:20:08 PM (6 years ago)
Author:
dias
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Commentary/Compiler/StackAreas

    v44 v45  
    5858To 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. 
    5959 
    60 ```STACK PICTURE HERE.``` 
     60[[Image(CallArea.png)]] 
     61 
    6162 
    6263Note: 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.