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

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3351 - (view) (download)

1 : jhr 3351 (* target.sml
2 :     *
3 :     * This code is part of the Diderot Project (http://diderot-language.cs.uchicago.edu)
4 :     *
5 :     * COPYRIGHT (c) 2015 The University of Chicago
6 :     * All rights reserved.
7 :     *
8 :     * Utility support for target selection, etc.
9 :     *)
10 :    
11 :     structure Target =
12 :     struct
13 :    
14 :     datatype target
15 :     = SEQUENTIAL (* sequential C code *)
16 :     | PARALLEL (* parallel C code *)
17 :     | OPENCL (* OpenCL *)
18 :     | CUDA (* CUDA *)
19 :    
20 :     (* the target descriptor collects together the information specified on the Diderot
21 :     * compiler's command-line.
22 :     *)
23 :     type desc = {
24 :     version : string, (* diderotc compiler version *)
25 :     srcFile : string, (* source filename *)
26 :     outDir : string, (* directory to put output *)
27 :     outBase : string, (* basename for output or name of executable *)
28 :     exec : bool, (* generate standalone executable? *)
29 :     snapshot : bool, (* generate functions to get snapshot *)
30 :     target : target, (* target platform *)
31 :     namespace : string, (* optional namespace prefix *)
32 :     double : bool, (* true for double-precision candidates *)
33 :     longint : bool, (* true for 64-bit integers (not currently used) *)
34 :     debug : bool, (* true if debugging of the target is enabled *)
35 :     bsp : bool (* true if BSP style execution should always be used *)
36 :     }
37 :    
38 :     end

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