ghc-10.0.0.20260917: The GHC API
Safe HaskellNone
LanguageGHC2024

GHC.ByteCode.Linker

Description

Bytecode assembler and linker

Synopsis

Documentation

linkBCO Source #

Arguments

:: Interp 
-> PkgsLoaded 
-> BytecodeLoaderState 
-> NameEnv BCOIx

A mapping from names to references to other BCOs or static constructors in this group.

-> UnlinkedBCO 
-> IO ResolvedBCO 

Linking interpretables into something we can run

data BCOIx Source #

An index into a BCO or Static Constructor in this group.

We distinguish between lifted and unlifted static constructors because lifted ones get resolved by tying a knot, since there may be circular dependencies between them, whereas unlifted ones get constructed in a first pass.

Instances

Instances details
Eq BCOIx Source # 
Instance details

Defined in GHC.ByteCode.Linker

Methods

(==) :: BCOIx -> BCOIx -> Bool Source #

(/=) :: BCOIx -> BCOIx -> Bool Source #

Ord BCOIx Source # 
Instance details

Defined in GHC.ByteCode.Linker

Show BCOIx Source # 
Instance details

Defined in GHC.ByteCode.Linker