ghc-heap-view-0.5.3: Extract the heap representation of Haskell values and thunks

Safe HaskellSafe-Inferred
LanguageHaskell2010

GHC.Disassembler

Description

A disassembler for ByteCode objects as used by GHCi.

Synopsis

Documentation

toBytes :: Word -> [Word] -> ByteString Source

Converts the first n bytes of this list of Words to a ByteString.

disassemble :: forall box. [box] -> [Word] -> ByteString -> [BCI box] Source

Given a list of pointers, a list of literals and a ByteString containing byte code instructions, disassembles them into a list of byte code instructions.