Harpy.CodeGenMonad

Types

data CodeGen e s a

type ErrMsg

data RelocKind

data Reloc

data Label

data FixupKind

data CodeGenConfig

defaultCodeGenConfig

Functions

General code generator monad operations

failCodeGen

Accessing code generation internals

getEntryPoint

getCodeOffset

getBasePtr

getCodeBufferList

Access to user state and environment

setState

getState

getEnv

withEnv

Label management

newLabel

newNamedLabel

setLabel

defineLabel

(@@)

emitFixup

labelAddress

emitRelocInfo

Code emission

emit8

emit8At

peek8At

emit32

emit32At

checkBufferSize

ensureBufferSize

Executing code generation

runCodeGen

runCodeGenWithConfig

Calling generated functions

callDecl

Interface to disassembler

disassemble