jon.recoil.org

Module For_jit.Internal_assembler

Internal assembler hook for JIT support

type assembled_section = Assembled_section.t
type hook = (string * assembled_section) list -> string -> unit

The hook function type. Takes assembled sections and returns a function that writes binary content to a file (for object file output).

val register : hook -> unit

Register a hook to be called when code is generated

val unregister : unit -> unit

Unregister the hook

val get : unit -> hook option

Get the current hook if any