SPARC.Stack

ghc-8.2.0.20170404: The GHC API

Safe Haskell | None
Language | Haskell2010

SPARC.Stack (signature[?])

Synopsis

- spRel :: Int -> AddrMode
- fpRel :: Int -> AddrMode
- spillSlotToOffset :: DynFlags -> Int -> Int
- maxSpillSlots :: DynFlags -> Int

# Documentation

spRel Source #

Arguments

:: Int | stack offset in words, positive or negative
-> AddrMode |

Get an AddrMode relative to the address in sp. This gives us a stack relative addressing mode for volatile temporaries and for excess call arguments.

fpRel :: Int -> AddrMode Source #

Get an address relative to the frame pointer. This doesn't work work for offsets greater than 13 bits; we just hope for the best

spillSlotToOffset :: DynFlags -> Int -> Int Source #

Convert a spill slot number to a *byte* offset, with no sign.

maxSpillSlots :: DynFlags -> Int Source #

The maximum number of spill slots available on the C stack. If we use up all of the slots, then we're screwed.

Why do we reserve 64 bytes, instead of using the whole thing?? -- BL 20090215