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 /MLRISC/trunk/amd64/flowgraph/amd64GasPseudoOps.sml
ViewVC logotype

View of /MLRISC/trunk/amd64/flowgraph/amd64GasPseudoOps.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2778 - (download) (annotate)
Tue Sep 18 19:30:40 2007 UTC (12 years, 10 months ago) by jhr
File size: 1007 byte(s)
  Making the generated assembler more compatible with Mac OS X.
(* amd64GasPseudoOps.sml
 *
 * COPYRIGHT (c) 2006 The Fellowship of SML/NJ (www.smlnj.org)
 * All rights reserved.
 *)

functor AMD64GasPseudoOps (
    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