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

Safe HaskellNone

GHC.Disassembler

Description

A disassembler for ByteCode objects as used by GHCi.

Synopsis

Documentation

toBytes :: Word -> [Word] -> ByteStringSource

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.