ghci: support foreign import prim
The only thing to my knowledge which GHCi doesn't support is the foreign import prim
calling convention.
It would be good to be able to support this calling convention if possible (perhaps by performing the call via a wrapper or the like).
cc @luite
- Show closed items
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- Matthew Pickering changed milestone to %9.6.1
changed milestone to %9.6.1
- ghc-triage-bot added needs triage label
added needs triage label
- Maintainer
sounds like a good idea, perhaps something similar to the unboxed tuples where the bytecode contains the data of where to move the arguments
- Matthew Pickering added GHCi Pnormal Tfeature request labels and removed needs triage label
added GHCi Pnormal Tfeature request labels and removed needs triage label
- Ben Gamari assigned to @luite
assigned to @luite
- Maintainer
This is in progress.
I got it working for with a new
PRIMCALL
bytecode instruction, including for calls that return a tuple.I still need to do more testing, add tests and do some cleanups. Hopefully an MR will follow soon.
- Maintainer
well I spent half of ICFP debugging this but it seems to actually work now
- Maintainer
MR in !9026 (closed)
Feature complete if CI passes, needs a bit more cleanup and somewhat more comprehensive testcase
- Luite Stegeman mentioned in commit 992606f2
mentioned in commit 992606f2
- Luite Stegeman mentioned in commit b3af4540
mentioned in commit b3af4540
- Luite Stegeman mentioned in commit 00577d1a
mentioned in commit 00577d1a
- Luite Stegeman mentioned in commit 04ae209b
mentioned in commit 04ae209b
- Luite Stegeman mentioned in commit 422d296f
mentioned in commit 422d296f
- Luite Stegeman mentioned in commit daa8d8c1
mentioned in commit daa8d8c1
- Luite Stegeman mentioned in commit 4807d580
mentioned in commit 4807d580
- Luite Stegeman mentioned in commit 7b1933be
mentioned in commit 7b1933be
- Luite Stegeman mentioned in commit d4725fab
mentioned in commit d4725fab
- Luite Stegeman mentioned in commit 4c8f5e7e
mentioned in commit 4c8f5e7e
- Luite Stegeman mentioned in commit d1b606d3
mentioned in commit d1b606d3
- Luite Stegeman mentioned in commit 65c1bd2b
mentioned in commit 65c1bd2b