Skip to content

RTS: Refactor Haskell-C glue for PPC 64-bit

Peter Trommler requested to merge wip/ppc64-refactor-StgCRun into master

Make sure the stack is 16 byte aligned even when reserved stack bytes are not a multiple of 16 bytes.

Avoid saving r2 (TOC). On ELF v1 the function descriptor of StgReturn has the same TOC as StgRun, on ELF v2 the TOC is recomputed in the function prologue.

Use the ABI provided functions to save clobbered GPRs and FPRs.

Improve comments. Describe what the stack looks like and how it relates to the respective ABIs.

Merge request reports