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/vararg-ccall/vararg-ccall-constants.sml
ViewVC logotype

View of /MLRISC/trunk/vararg-ccall/vararg-ccall-constants.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3068 - (download) (annotate)
Fri Jun 6 00:25:53 2008 UTC (10 years, 9 months ago) by mrainey
File size: 503 byte(s)
  Got the prototype up and running.
structure VarargCCallConstants =
  struct

  (* encodings for the kinds of argument locations *)
    val GPR = 0
    val FPR = 1
    val STK = 2
    val FSTK = 3

  (* offsets into the zipped argument *)
    val argOff = 0
    val kindOff = 1
    val locOff = 2
    val tyOff = 3

  (* the default byte width for storing vararg information *)
    val defaultWidthB = 8

  (* number of bytes for a zipped argument *)
    val zippedArgSzB = 4 * defaultWidthB

    val varargInterpreter = "varargs"

  end

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