GHC.ByteCode.Linker

ghc-9.2.3: The GHC API

Safe Haskell | Safe-Inferred
Language | Haskell2010

GHC.ByteCode.Linker

Description

Bytecode assembler and linker

# Documentation

type ClosureEnv = NameEnv (Name, ForeignHValue) Source #

emptyClosureEnv :: ClosureEnv Source #

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

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

lookupStaticPtr :: Interp -> FastString -> IO (Ptr ()) Source #

lookupIE :: Interp -> ItblEnv -> Name -> IO (Ptr ()) Source #

nameToCLabel :: Name -> String -> FastString Source #

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