Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /sml/trunk/src/MLRISC/extensions/code-emitter.sig
ViewVC logotype

View of /sml/trunk/src/MLRISC/extensions/code-emitter.sig

Parent Directory Parent Directory | Revision Log Revision Log


Revision 221 - (download) (as text) (annotate)
Sat Apr 17 16:19:57 1999 UTC (20 years, 5 months ago) by monnier
File size: 1231 byte(s)
Initial revision
(*
 * This is an abstract interface for generating assembly, or machine code.
 * It is also used by the front-end to generate code for the back-end.
 * Unlike the signature EMITTER_NEW or FLOWGRAPH_GEN, this one is not
 * tied into any form of flowgraph representation.  
 *) 

signature CODE_EMITTER =
sig

   structure I : INSTRUCTIONS
   structure C : CELLS
   structure P : PSEUDO_OPS
   structure B : BLOCK_NAMES
      sharing I.C = C

   type emitter =
   {  defineLabel : Label.label -> unit,   (* internal labels *)
      entryLabel  : Label.label -> unit,   (* external labels *)
      exitBlock   : C.cellset -> unit,     (* escaping exit *)
      pseudoOp    : P.pseudo_op -> unit,   (* emit pseudo ops *)
      emitInstr   : I.instruction -> unit, (* emit an instruction *) 
      blockName   : B.name -> unit,        (* change the block name *)
      comment     : string -> unit,        (* emit a comment *) 
      init        : int -> unit,           
                           (* initialize (n bytes if for machine code) *)
      finish      : unit -> unit           (* finish and clean up *)
   } 

end

(*
 * $Log: code-emitter.sig,v $
 * Revision 1.1.1.1  1998/11/16 21:48:27  george
 *   Version 110.10
 *
 *)

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0