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/x86/flowgraph/x86GasPseudoOps.sml
ViewVC logotype

View of /sml/trunk/src/MLRISC/x86/flowgraph/x86GasPseudoOps.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1012 - (download) (annotate)
Tue Jan 15 16:16:39 2002 UTC (17 years, 9 months ago) by george
File size: 923 byte(s)
  added BSS and SPACE as basic pseudo-ops
(* x86GasPseudoOps.sml
 *
 * COPYRIGHT (c) 2002 Bell Labs, Lucent Technologies
 *
 *)
functor X86GasPseudoOps 
   ( structure T : MLTREE
     structure MLTreeEval : MLTREE_EVAL  where T = T
    ) : PSEUDO_OPS_BASIS = 

struct
  structure T = T
  structure PB = PseudoOpsBasisTyp
  structure Fmt = Format

  structure Endian = 
     PseudoOpsLittle
	(structure T = T
	 structure MLTreeEval=MLTreeEval
	 val icache_alignment = 16
	 val max_alignment = SOME 7
	 val nop = {sz=1, en=0wx90: Word32.word})

  structure GasPseudoOps = 
     GasPseudoOps(structure T = T
		  val labFmt = {gPrefix="", aPrefix="L"})

  type 'a pseudo_op = (T.labexp, 'a) PB.pseudo_op
  
  fun error msg = MLRiscErrorMsg.error ("GasPseudoOps.", msg)

  val sizeOf = Endian.sizeOf
  val emitValue = Endian.emitValue
  val lexpToString = GasPseudoOps.lexpToString
  val toString = GasPseudoOps.toString
  val defineLabel = GasPseudoOps.defineLabel
end

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