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/branches/num64/compiler/Basics/mlcomp/target.sig
ViewVC logotype

View of /sml/branches/num64/compiler/Basics/mlcomp/target.sig

Parent Directory Parent Directory | Revision Log Revision Log

Revision 5441 - (download) (as text) (annotate)
Sat Jun 15 17:20:50 2019 UTC (3 months ago) by jhr
File size: 808 byte(s)
  Replace uses of the Assembly logb function with the SML code
  that uses the new REAL_TO_BITS primop.  Also refactored the
  Math64 structure into a common implementation that is extended
  to the full MATH signature by machine-specific implementations
(* target.sig
 * COPYRIGHT (c) 2017 The Fellowship of SML/NJ (http://www.smlnj.org)
 * All rights reserved.

signature TARGET =

  (* the size of a machine address in bits *)
    val pointerSz : int

  (* the size of an ML value (aka "word") on the target; usually this is the
   * natural pointer size, but some 64-bit targets (e.g., the Alpha) have
   * used 32-bits for ML words.
    val mlValueSz : int

  (* the size of the default "int" type (== mlValueSz-1) *)
    val defaultIntSz : int

  (* the size of the FixedInt.int type *)
    val fixedIntSz : int

  (* the default size of the "real" type (usually 64-bits) *)
    val defaultRealSz : int

  (* true for 64-bit targets *)
    val is64 : bool

  (* true for big-endian targets (SPARC, PPC) *)
    val bigEndian : bool


ViewVC Help
Powered by ViewVC 1.0.0