Re: Calling an unknown function from low-level Cmm

2020-02-24 Thread Alexis King
> On Feb 24, 2020, at 20:03, Simon Peyton Jones wrote: > > I don’t know the answer to this, but Alexis when you find out can I ask (I > know I'm a broken record on this) that you write a Note to explain, with > pointers from the various places you looked when you were trying to find out > the

RE: Calling an unknown function from low-level Cmm

2020-02-24 Thread Simon Peyton Jones via ghc-devs
-devs On Behalf Of Alexis King | Sent: 14 February 2020 19:53 | To: ghc-devs | Subject: Calling an unknown function from low-level Cmm | | Hi all, | | I’m trying to understand how to properly call an unknown function from | low-level Cmm code. If I’m just applying a function to a state

Calling an unknown function from low-level Cmm

2020-02-14 Thread Alexis King
Hi all, I’m trying to understand how to properly call an unknown function from low-level Cmm code. If I’m just applying a function to a state token, it’s easy; I can just do R1 = io; jump stg_ap_v_fast [R1]; since the calling convention is consistent in that case. But what if my