ghc-9.15: The GHC API
Safe HaskellNone
LanguageGHC2024

GHC.ByteCode.Serialize

Description

This module implements the serialization of bytecode objects to and from disk.

Synopsis

Documentation

data ModuleByteCode Source #

The in-memory representation of a bytecode object These are stored on-disk as .gbc files.

Instances

Instances details
Outputable ModuleByteCode Source # 
Instance details

Defined in GHC.Linker.Types

data BytecodeLibX a Source #

A bytecode library is a collection of CompiledByteCode objects and a .so file containing the combination of foreign stubs

decodeOnDiskModuleByteCode :: HscEnv -> OnDiskModuleByteCode -> IO ModuleByteCode Source #

Convert an OnDiskModuleByteCode to an ModuleByteCode. OnDiskModuleByteCode is the representation which we read from a file, the ModuleByteCode is the representation which is manipulated by program logic.

This notably writes the object files to temporary files. They are written to temporary files so that the normal object file loading code paths (which expect object files to exist as on-disk files) can be used in the loader.

Orphan instances