Skip to content
Snippets Groups Projects
Commit 4807d580 authored by Luite Stegeman's avatar Luite Stegeman
Browse files

Add PrimCallConv support to GHCi

This adds support for calling Cmm code from bytecode using the native
calling convention, allowing modules that use `foreign import prim`
to be loaded and debugged in GHCi.

This patch introduces a new `PRIMCALL` bytecode instruction and
a helper stack frame `stg_primcall`. The code is based on the
existing functionality for dealing with unboxed tuples in bytecode,
which has been generalised to handle arbitrary calls.

Fixes #22051
parent e3fff751
No related branches found
No related tags found
No related merge requests found
Pipeline #61217 canceled
Showing
with 1041 additions and 145 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment