Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] View of /branches/vis15/src/compiler/options/target.sml
ViewVC logotype

View of /branches/vis15/src/compiler/options/target.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3351 - (download) (annotate)
Wed Oct 28 16:14:29 2015 UTC (5 years, 1 month ago) by jhr
File size: 1518 byte(s)
  Working on merge.
(* target.sml
 *
 * This code is part of the Diderot Project (http://diderot-language.cs.uchicago.edu)
 *
 * COPYRIGHT (c) 2015 The University of Chicago
 * All rights reserved.
 *
 * Utility support for target selection, etc.
 *)

structure Target =
  struct

    datatype target
      = SEQUENTIAL	(* sequential C code *)
      | PARALLEL	(* parallel C code *)
      | OPENCL		(* OpenCL *)
      | CUDA		(* CUDA *)

  (* the target descriptor collects together the information specified on the Diderot
   * compiler's command-line.
   *)
    type desc = {
        version : string,               (* diderotc compiler version *)
        srcFile : string,               (* source filename *)
        outDir : string,                (* directory to put output *)
        outBase : string,               (* basename for output or name of executable *)
        exec : bool,                    (* generate standalone executable? *)
        snapshot : bool,                (* generate functions to get snapshot *)
        target : target,                (* target platform *)
        namespace : string,             (* optional namespace prefix *)
        double : bool,                  (* true for double-precision candidates *)
        longint : bool,                 (* true for 64-bit integers (not currently used) *)
        debug : bool,                   (* true if debugging of the target is enabled *)
        bsp : bool                      (* true if BSP style execution should always be used *)
      }

  end

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