The EMITTER_NEW signature

A generic interface to emit either machine code or assembly code.


Synopsis

signature EMITTER_NEW

Interface

structure I : INSTRUCTIONS
structure F : FLOWGRAPH
val defineLabel : Label.label -> unit
val emitInstr : (I.instruction * int Array.array ref list) -> unit
val comment : string -> unit
val pseudoOp : F.P.pseudo_op -> unit
val init : int -> unit

Description

structure I

structure F

defineLabel lab
define the label lab.

emitInstr (instr, regmaps)
emit the instruction instr using the register alias tables in regmaps.

comment s
emit a comment containing the string s.

pseudoOp pOp
emit the pseudo-op pOp.

init n
allocate space of size n bytes. This is more relevant for machine code.



  Submit a comment on this page  

[ INDEX | TOP | Parent | Root ]

Author: Lal George
Last Modified: October 18, 1996
Copyright © 1996 Bell Laboratories