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/x86/flowgraph/x86-darwin-pseudo-ops.sml
ViewVC logotype

View of /MLRISC/trunk/x86/flowgraph/x86-darwin-pseudo-ops.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2779 - (download) (annotate)
Tue Sep 18 20:27:33 2007 UTC (11 years, 10 months ago) by jhr
File size: 978 byte(s)
  Pseudo ops for AMD64/Darwin combination.
(* x86-darwin-pseudo-ops.sml
 *
 * COPYRIGHT (c) 2006 The SML/NJ Fellowship (www.smlnj.org)
 * All rights reserved.
 *)

functor X86DarwinPseudoOps (

    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 POps = DarwinPseudoOps(
	structure T = T
	val labFmt = {gPrefix="", aPrefix="L"})
  
    type 'a pseudo_op = (T.labexp, 'a) PB.pseudo_op
    
    fun error msg = MLRiscErrorMsg.error ("X86DarwinPseudoOps.", msg)
  
    val sizeOf = Endian.sizeOf
    val emitValue = Endian.emitValue
    val lexpToString = POps.lexpToString
    val toString = POps.toString
    val defineLabel = POps.defineLabel

  end

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