ghc-8.0.2: The GHC API

Safe Haskell | None
Language | Haskell2010

ByteCodeLink

Description

ByteCodeLink: Bytecode assembler and linker

# Documentation

type ClosureEnv = NameEnv (Name, ForeignHValue) Source #

emptyClosureEnv :: ClosureEnv Source #

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

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

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

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

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

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