Haskell.org
Sign In Sign Up
Manage this list Sign In Sign Up

Keyboard Shortcuts

Thread View

  • j: Next unread message
  • k: Previous unread message
  • j a: Jump to all threads
  • j l: Jump to MailingList overview
thread

Andrew Martin

1 Jul 2019 1 Jul '19
11:14 a.m.

To get GHC to raise an exception from an inline primop, I presume that I'd need to jump to stg_raisezh. None of the existing inline primops do anything quite like this. I see things like emitMemcmpCall and emitMemsetCall, but these ultimately just wrap emitForeignCall, which wraps mkUnsafeCall, which wraps the data constructor CmmUnsafeForeignCall. I think I want CmmCall instead, which is described by the comments as being used for "a native call or tail call". Hmm... emitRtsCall might be what I want. I'll try pursuing this route further. -- -Andrew Thaddeus Martin

Attachments:

  • attachment.html (text/html — 712 bytes)
0 0
Reply
Sign in to reply online Use email software

Back to the thread

Back to the list

HyperKitty Powered by HyperKitty version 1.3.9.