ghc-8.2.2: The GHC API

Safe Haskell | None
Language | Haskell2010

ByteCodeLink

Description

ByteCodeLink: Bytecode assembler and linker

# 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 #