ByteCodeLink

ghc-8.10.2: The GHC API

Safe Haskell | None
Language | Haskell2010

ByteCodeLink

Description

# Documentation

type ClosureEnv = NameEnv (Name, ForeignHValue) #

emptyClosureEnv :: ClosureEnv #

extendClosureEnv :: ClosureEnv -> [(Name, ForeignHValue)] -> ClosureEnv #

linkBCO :: HscEnv -> ItblEnv -> ClosureEnv -> NameEnv Int -> RemoteRef BreakArray -> UnlinkedBCO -> IO ResolvedBCO #

lookupStaticPtr :: HscEnv -> FastString -> IO (Ptr ()) #

lookupIE :: HscEnv -> ItblEnv -> Name -> IO (Ptr ()) #

nameToCLabel :: Name -> String -> FastString #

linkFail :: String -> String -> IO a #