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

SCM Repository

[diderot] Annotation of /trunk/src/compiler/c-target/c-target.sml
ViewVC logotype

Annotation of /trunk/src/compiler/c-target/c-target.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1640 - (view) (download)

1 : jhr 1115 (* c-target.sml
2 :     *
3 :     * COPYRIGHT (c) 2011 The Diderot Project (http://diderot-language.cs.uchicago.edu)
4 :     * All rights reserved.
5 :     *)
6 :    
7 :     structure CTarget : TARGET =
8 :     struct
9 :    
10 :     structure IL = TreeIL
11 :     structure V = IL.Var
12 :     structure Ty = IL.Ty
13 :     structure CL = CLang
14 : jhr 1376 structure N = CNames
15 : jhr 1115
16 : jhr 1640 (* variable translation *)
17 :     structure TrVar =
18 :     struct
19 :     type env = CL.typed_var TreeIL.Var.Map.map
20 :     fun lookup (env, x) = (case V.Map.find (env, x)
21 :     of SOME(CL.V(_, x')) => x'
22 :     | NONE => raise Fail(concat["lookup(_, ", V.name x, ")"])
23 :     (* end case *))
24 :     (* translate a variable that occurs in an l-value context (i.e., as the target of an assignment) *)
25 :     fun lvalueVar (env, x) = (case V.kind x
26 :     of IL.VK_Global => CL.mkVar(lookup(env, x))
27 :     | IL.VK_Local => CL.mkVar(lookup(env, x))
28 :     (* end case *))
29 :     (* translate a variable that occurs in an r-value context *)
30 :     fun rvalueVar (env, x) = (case V.kind x
31 :     of IL.VK_Global => CL.mkVar(lookup(env, x))
32 :     | IL.VK_Local => CL.mkVar(lookup(env, x))
33 :     (* end case *))
34 :     (* translate a strand state variable that occurs in an l-value context *)
35 :     fun lvalueStateVar x = CL.mkIndirect(CL.mkVar "selfOut", IL.StateVar.name x)
36 :     (* translate a strand state variable that occurs in an r-value context *)
37 :     fun rvalueStateVar x = CL.mkIndirect(CL.mkVar "selfIn", IL.StateVar.name x)
38 :     end
39 :    
40 :     structure ToC = TreeToCFn (TrVar)
41 :    
42 :     type var = CL.typed_var
43 : jhr 1115 type exp = CL.exp
44 :     type stm = CL.stm
45 :    
46 :     datatype strand = Strand of {
47 : jhr 1375 name : string,
48 :     tyName : string,
49 : jhr 1640 state : var list,
50 :     output : (Ty.ty * CL.var), (* the strand's output variable (only one for now) *)
51 : jhr 1375 code : CL.decl list ref
52 : jhr 1115 }
53 :    
54 :     datatype program = Prog of {
55 : jhr 1375 name : string, (* stem of source file *)
56 :     double : bool, (* true for double-precision support *)
57 :     parallel : bool, (* true for multithreaded (or multi-GPU) target *)
58 :     debug : bool, (* true for debug support in executable *)
59 :     globals : CL.decl list ref,
60 :     topDecls : CL.decl list ref,
61 :     strands : strand AtomTable.hash_table,
62 :     initially : CL.decl ref
63 : jhr 1115 }
64 :    
65 :     datatype env = ENV of {
66 : jhr 1375 info : env_info,
67 :     vMap : var V.Map.map,
68 :     scope : scope
69 : jhr 1115 }
70 :    
71 :     and env_info = INFO of {
72 : jhr 1375 prog : program
73 : jhr 1115 }
74 :    
75 :     and scope
76 :     = NoScope
77 :     | GlobalScope
78 :     | InitiallyScope
79 : jhr 1640 | StrandScope (* strand initialization *)
80 :     | MethodScope of StrandUtil.method_name (* method body; vars are state variables *)
81 : jhr 1115
82 :     (* the supprted widths of vectors of reals on the target. For the GNU vector extensions,
83 :     * the supported sizes are powers of two, but float2 is broken.
84 :     * NOTE: we should also consider the AVX vector hardware, which has 256-bit registers.
85 :     *)
86 : jhr 1376 fun vectorWidths () = if !N.doublePrecision
87 : jhr 1375 then [2, 4, 8]
88 :     else [4, 8]
89 : jhr 1115
90 : jhr 1640 (* we support printing in the sequential C target *)
91 :     val supportsPrinting = true
92 :    
93 : jhr 1115 (* tests for whether various expression forms can appear inline *)
94 : jhr 1375 fun inlineCons n = (n < 2) (* vectors are inline, but not matrices *)
95 :     val inlineMatrixExp = false (* can matrix-valued expressions appear inline? *)
96 : jhr 1115
97 :     (* TreeIL to target translations *)
98 :     structure Tr =
99 :     struct
100 : jhr 1375 fun fragment (ENV{info, vMap, scope}, blk) = let
101 :     val (vMap, stms) = ToC.trFragment (vMap, blk)
102 :     in
103 :     (ENV{info=info, vMap=vMap, scope=scope}, stms)
104 :     end
105 : jhr 1640 (* NOTE: we may be able to simplify the interface to ToC.trBlock! *)
106 :     fun block (ENV{vMap, ...}, blk) = ToC.trBlock (vMap, blk)
107 : jhr 1375 fun exp (ENV{vMap, ...}, e) = ToC.trExp(vMap, e)
108 : jhr 1115 end
109 :    
110 :     (* variables *)
111 :     structure Var =
112 :     struct
113 : jhr 1640 fun name (CL.V(_, name)) = name
114 : jhr 1375 fun global (Prog{globals, ...}, name, ty) = let
115 :     val ty' = ToC.trType ty
116 :     in
117 :     globals := CL.D_Var([], ty', name, NONE) :: !globals;
118 : jhr 1640 CL.V(ty', name)
119 : jhr 1375 end
120 : jhr 1640 fun param x = CL.V(ToC.trType(V.ty x), V.name x)
121 : jhr 1115 end
122 :    
123 :     (* environments *)
124 :     structure Env =
125 :     struct
126 :     (* create a new environment *)
127 : jhr 1375 fun new prog = ENV{
128 :     info=INFO{prog = prog},
129 :     vMap = V.Map.empty,
130 :     scope = NoScope
131 :     }
132 : jhr 1115 (* define the current translation context *)
133 : jhr 1375 fun setScope scope (ENV{info, vMap, ...}) = ENV{info=info, vMap=vMap, scope=scope}
134 :     val scopeGlobal = setScope GlobalScope
135 :     val scopeInitially = setScope InitiallyScope
136 : jhr 1640 fun scopeStrand env = setScope StrandScope env
137 :     fun scopeMethod (env, name) = setScope (MethodScope name) env
138 : jhr 1115 (* bind a TreeIL varaiable to a target variable *)
139 : jhr 1375 fun bind (ENV{info, vMap, scope}, x, x') = ENV{
140 :     info = info,
141 :     vMap = V.Map.insert(vMap, x, x'),
142 :     scope = scope
143 :     }
144 : jhr 1115 end
145 :    
146 :     (* programs *)
147 :     structure Program =
148 :     struct
149 : jhr 1375 fun new {name, double, parallel, debug} = (
150 : jhr 1640 N.initTargetSpec {double=double, long=false};
151 : jhr 1375 Prog{
152 :     name = name,
153 :     double = double, parallel = parallel, debug = debug,
154 :     globals = ref [ (* NOTE: in reverse order! *)
155 : jhr 1301 CL.D_Var(["static"], CL.charPtr, "ProgramName",
156 :     SOME(CL.I_Exp(CL.mkStr name))),
157 :     CL.D_Verbatim[
158 :     if double
159 : jhr 1640 then "#define DIDEROT_DOUBLE_PRECISION\n"
160 :     else "#define DIDEROT_SINGLE_PRECISION\n",
161 :     "#define DIDEROT_INT\n",
162 : jhr 1375 if parallel
163 : jhr 1640 then "#define DIDEROT_TARGET_PARALLEL\n"
164 :     else "#define DIDEROT_TARGET_C\n",
165 :     "#include \"Diderot/diderot.h\"\n"
166 : jhr 1301 ]
167 : jhr 1375 ],
168 :     topDecls = ref [],
169 :     strands = AtomTable.mkTable (16, Fail "strand table"),
170 :     initially = ref(CL.D_Comment["missing initially"])
171 :     })
172 : jhr 1301 (* register the code that is used to register command-line options for input variables *)
173 : jhr 1375 fun inputs (Prog{topDecls, ...}, stm) = let
174 :     val inputsFn = CL.D_Func(
175 : jhr 1376 [], CL.voidTy, N.registerOpts,
176 :     [CL.PARAM([], CL.T_Ptr(CL.T_Named N.optionsTy), "opts")],
177 : jhr 1375 stm)
178 :     in
179 :     topDecls := inputsFn :: !topDecls
180 :     end
181 : jhr 1115 (* register the global initialization part of a program *)
182 : jhr 1375 fun init (Prog{topDecls, ...}, init) = let
183 : jhr 1376 val initFn = CL.D_Func([], CL.voidTy, N.initGlobals, [], init)
184 : jhr 1375 val shutdownFn = CL.D_Func(
185 : jhr 1376 [], CL.voidTy, N.shutdown,
186 :     [CL.PARAM([], CL.T_Ptr(CL.T_Named N.worldTy), "wrld")],
187 : jhr 1375 CL.S_Block[])
188 :     in
189 :     topDecls := shutdownFn :: initFn :: !topDecls
190 :     end
191 : jhr 1115 (* create and register the initially function for a program *)
192 : jhr 1375 fun initially {
193 :     prog = Prog{name=progName, strands, initially, ...},
194 :     isArray : bool,
195 :     iterPrefix : stm list,
196 :     iters : (var * exp * exp) list,
197 :     createPrefix : stm list,
198 :     strand : Atom.atom,
199 :     args : exp list
200 :     } = let
201 :     val name = Atom.toString strand
202 :     val nDims = List.length iters
203 : jhr 1376 val worldTy = CL.T_Ptr(CL.T_Named N.worldTy)
204 : jhr 1375 fun mapi f xs = let
205 :     fun mapf (_, []) = []
206 :     | mapf (i, x::xs) = f(i, x) :: mapf(i+1, xs)
207 :     in
208 :     mapf (0, xs)
209 :     end
210 :     val baseInit = mapi (fn (i, (_, e, _)) => (i, CL.I_Exp e)) iters
211 :     val sizeInit = mapi
212 : jhr 1640 (fn (i, (CL.V(ty, _), lo, hi)) =>
213 : jhr 1375 (i, CL.I_Exp(CL.mkBinOp(CL.mkBinOp(hi, CL.#-, lo), CL.#+, CL.E_Int(1, ty))))
214 :     ) iters
215 :     (* code to allocate the world and initial strands *)
216 :     val wrld = "wrld"
217 :     val allocCode = [
218 :     CL.mkComment["allocate initial block of strands"],
219 :     CL.mkDecl(CL.T_Array(CL.int32, SOME nDims), "base", SOME(CL.I_Array baseInit)),
220 :     CL.mkDecl(CL.T_Array(CL.uint32, SOME nDims), "size", SOME(CL.I_Array sizeInit)),
221 :     CL.mkDecl(worldTy, wrld,
222 : jhr 1376 SOME(CL.I_Exp(CL.E_Apply(N.allocInitially, [
223 : jhr 1375 CL.mkVar "ProgramName",
224 : jhr 1376 CL.mkUnOp(CL.%&, CL.E_Var(N.strandDesc name)),
225 : jhr 1375 CL.E_Bool isArray,
226 :     CL.E_Int(IntInf.fromInt nDims, CL.int32),
227 :     CL.E_Var "base",
228 :     CL.E_Var "size"
229 :     ]))))
230 :     ]
231 :     (* create the loop nest for the initially iterations *)
232 :     val indexVar = "ix"
233 : jhr 1376 val strandTy = CL.T_Ptr(CL.T_Named(N.strandTy name))
234 : jhr 1375 fun mkLoopNest [] = CL.mkBlock(createPrefix @ [
235 :     CL.mkDecl(strandTy, "sp",
236 :     SOME(CL.I_Exp(
237 :     CL.E_Cast(strandTy,
238 : jhr 1376 CL.E_Apply(N.inState, [CL.E_Var "wrld", CL.E_Var indexVar]))))),
239 :     CL.mkCall(N.strandInit name, CL.E_Var "sp" :: args),
240 : jhr 1375 CL.mkAssign(CL.E_Var indexVar, CL.mkBinOp(CL.E_Var indexVar, CL.#+, CL.E_Int(1, CL.uint32)))
241 :     ])
242 : jhr 1640 | mkLoopNest ((CL.V(ty, param), lo, hi)::iters) = let
243 : jhr 1375 val body = mkLoopNest iters
244 :     in
245 :     CL.mkFor(
246 :     [(ty, param, lo)],
247 :     CL.mkBinOp(CL.E_Var param, CL.#<=, hi),
248 :     [CL.mkPostOp(CL.E_Var param, CL.^++)],
249 :     body)
250 :     end
251 :     val iterCode = [
252 :     CL.mkComment["initially"],
253 :     CL.mkDecl(CL.uint32, indexVar, SOME(CL.I_Exp(CL.E_Int(0, CL.uint32)))),
254 :     mkLoopNest iters
255 :     ]
256 :     val body = CL.mkBlock(
257 : jhr 1301 iterPrefix @
258 :     allocCode @
259 :     iterCode @
260 :     [CL.mkReturn(SOME(CL.E_Var "wrld"))])
261 : jhr 1376 val initFn = CL.D_Func([], worldTy, N.initially, [], body)
262 : jhr 1375 in
263 :     initially := initFn
264 :     end
265 : jhr 1115
266 :     (***** OUTPUT *****)
267 : jhr 1375 fun genStrand (Strand{name, tyName, state, output, code}) = let
268 :     (* the type declaration for the strand's state struct *)
269 :     val selfTyDef = CL.D_StructDef(
270 : jhr 1640 List.rev (List.map (fn CL.V(ty, x) => (ty, x)) state),
271 : jhr 1375 tyName)
272 : jhr 1640 (* the type and access expression for the strand's output variable *)
273 :     val (outTy, outState) = (#1 output, CL.mkIndirect(CL.mkVar "self", #2 output))
274 : jhr 1375 (* the print function *)
275 : jhr 1640 val prFnName = concat[name, "_Print"]
276 : jhr 1375 val prFn = let
277 :     val params = [
278 :     CL.PARAM([], CL.T_Ptr(CL.T_Named "FILE"), "outS"),
279 :     CL.PARAM([], CL.T_Ptr(CL.T_Named tyName), "self")
280 :     ]
281 : jhr 1640 val prArgs = (case outTy
282 :     of Ty.IntTy => [CL.E_Str(!N.gIntFormat ^ "\n"), outState]
283 :     | Ty.TensorTy[] => [CL.E_Str "%f\n", outState]
284 :     | Ty.TensorTy[d] => let
285 : jhr 1375 val fmt = CL.E_Str(
286 : jhr 1640 String.concatWith " " (List.tabulate(d, fn _ => "%f"))
287 : jhr 1375 ^ "\n")
288 : jhr 1640 val args = List.tabulate (d, fn i => ToC.vecIndex(outState, d, i))
289 : jhr 1375 in
290 :     fmt :: args
291 :     end
292 : jhr 1640 | Ty.SeqTy(Ty.IntTy, d) => let
293 : jhr 1375 val fmt = CL.E_Str(
294 : jhr 1640 String.concatWith " " (List.tabulate(d, fn _ => !N.gIntFormat))
295 : jhr 1375 ^ "\n")
296 : jhr 1640 val args = List.tabulate (d, fn i => ToC.ivecIndex(outState, d, i))
297 : jhr 1375 in
298 :     fmt :: args
299 :     end
300 : jhr 1640 | _ => raise Fail("genStrand: unsupported output type " ^ Ty.toString outTy)
301 : jhr 1375 (* end case *))
302 :     in
303 :     CL.D_Func(["static"], CL.voidTy, prFnName, params,
304 :     CL.mkCall("fprintf", CL.mkVar "outS" :: prArgs))
305 :     end
306 : jhr 1640 (* the output function *)
307 :     val outFnName = concat[name, "_Output"]
308 :     val outFn = let
309 :     val params = [
310 :     CL.PARAM([], CL.T_Ptr CL.voidTy, "outS"),
311 :     CL.PARAM([], CL.T_Ptr(CL.T_Named tyName), "self")
312 :     ]
313 :     (* get address of output variable *)
314 :     val outState = CL.mkUnOp(CL.%&, outState)
315 :     in
316 :     CL.D_Func(["static"], CL.voidTy, outFnName, params,
317 :     CL.mkCall("memcpy", [CL.mkVar "outS", outState, CL.mkSizeof(ToC.trType outTy)] ))
318 :     end
319 : jhr 1375 (* the strand's descriptor object *)
320 :     val descI = let
321 :     fun fnPtr (ty, f) = CL.I_Exp(CL.mkCast(CL.T_Named ty, CL.mkVar f))
322 : jhr 1640 val nrrdTy = NrrdTypes.toNrrdType outTy
323 :     val nrrdSize = NrrdTypes.toNrrdSize outTy
324 :     in
325 :     CL.I_Struct[
326 :     ("name", CL.I_Exp(CL.mkStr name)),
327 :     ("stateSzb", CL.I_Exp(CL.mkSizeof(CL.T_Named(N.strandTy name)))),
328 :     ("outputSzb", CL.I_Exp(CL.mkInt nrrdSize)),
329 :     ("nrrdSzb", CL.I_Exp(CL.mkInt nrrdSize)),
330 :     ("nrrdType", CL.I_Exp(CL.mkInt nrrdTy)),
331 :     (* FIXME: should use StrandUtil.nameToString here *)
332 :     ("update", fnPtr("update_method_t", name ^ "_Update")),
333 :     ("stabilize", fnPtr("stabilize_method_t", name ^ "_Stabilize")),
334 :     ("print", fnPtr("print_method_t", prFnName)),
335 :     ("output", fnPtr("output_method_t", outFnName))
336 :     ]
337 :     end
338 : jhr 1376 val desc = CL.D_Var([], CL.T_Named N.strandDescTy, N.strandDesc name, SOME descI)
339 : jhr 1375 in
340 : jhr 1640 selfTyDef :: List.rev (desc :: prFn :: outFn :: !code)
341 : jhr 1375 end
342 : jhr 1115
343 :     (* generate the table of strand descriptors *)
344 : jhr 1375 fun genStrandTable (ppStrm, strands) = let
345 :     val nStrands = length strands
346 : jhr 1376 fun genInit (Strand{name, ...}) = CL.I_Exp(CL.mkUnOp(CL.%&, CL.E_Var(N.strandDesc name)))
347 : jhr 1375 fun genInits (_, []) = []
348 :     | genInits (i, s::ss) = (i, genInit s) :: genInits(i+1, ss)
349 :     fun ppDecl dcl = PrintAsC.output(ppStrm, dcl)
350 :     in
351 : jhr 1376 ppDecl (CL.D_Var([], CL.int32, N.numStrands,
352 : jhr 1375 SOME(CL.I_Exp(CL.E_Int(IntInf.fromInt nStrands, CL.int32)))));
353 :     ppDecl (CL.D_Var([],
354 : jhr 1376 CL.T_Array(CL.T_Ptr(CL.T_Named N.strandDescTy), SOME nStrands),
355 :     N.strands,
356 : jhr 1375 SOME(CL.I_Array(genInits (0, strands)))))
357 :     end
358 : jhr 1115
359 : jhr 1375 fun genSrc (baseName, prog) = let
360 :     val Prog{name, globals, topDecls, strands, initially, ...} = prog
361 :     val fileName = OS.Path.joinBaseExt{base=baseName, ext=SOME "c"}
362 :     val outS = TextIO.openOut fileName
363 :     val ppStrm = PrintAsC.new outS
364 :     fun ppDecl dcl = PrintAsC.output(ppStrm, dcl)
365 :     val strands = AtomTable.listItems strands
366 :     in
367 :     List.app ppDecl (List.rev (!globals));
368 :     List.app ppDecl (List.rev (!topDecls));
369 :     List.app (fn strand => List.app ppDecl (genStrand strand)) strands;
370 :     genStrandTable (ppStrm, strands);
371 :     ppDecl (!initially);
372 :     PrintAsC.close ppStrm;
373 :     TextIO.closeOut outS
374 :     end
375 : jhr 1115
376 :     (* output the code to a file. The string is the basename of the file, the extension
377 :     * is provided by the target.
378 :     *)
379 : jhr 1375 fun generate (basename, prog as Prog{name, double, parallel, debug, ...}) = let
380 :     fun condCons (true, x, xs) = x::xs
381 :     | condCons (false, _, xs) = xs
382 :     (* generate the C compiler flags *)
383 :     val cflags = ["-I" ^ Paths.diderotInclude, "-I" ^ Paths.teemInclude]
384 :     val cflags = condCons (parallel, #pthread Paths.cflags, cflags)
385 :     val cflags = if debug
386 :     then #debug Paths.cflags :: cflags
387 :     else #ndebug Paths.cflags :: cflags
388 :     val cflags = #base Paths.cflags :: cflags
389 :     (* generate the loader flags *)
390 :     val extraLibs = condCons (parallel, #pthread Paths.extraLibs, [])
391 :     val extraLibs = Paths.teemLinkFlags @ #base Paths.extraLibs :: extraLibs
392 :     val rtLib = TargetUtil.runtimeName {
393 :     target = TargetUtil.TARGET_C,
394 :     parallel = parallel, double = double, debug = debug
395 :     }
396 :     val ldOpts = rtLib :: extraLibs
397 :     in
398 :     genSrc (basename, prog);
399 :     RunCC.compile (basename, cflags);
400 :     RunCC.link (basename, ldOpts)
401 :     end
402 : jhr 1115
403 :     end
404 :    
405 :     (* strands *)
406 :     structure Strand =
407 :     struct
408 : jhr 1640 fun define (Prog{strands, ...}, strandId, state) = let
409 : jhr 1375 val name = Atom.toString strandId
410 : jhr 1640 (* the output state variable *)
411 :     val outputVar = (case List.filter IL.StateVar.isOutput state
412 :     of [] => raise Fail("no output specified for strand " ^ name)
413 :     | [x] => (IL.StateVar.ty x, IL.StateVar.name x)
414 :     | _ => raise Fail("multiple outputs in " ^ name)
415 :     (* end case *))
416 :     (* the state variables *)
417 :     val state = let
418 :     fun cvt x = CL.V(ToC.trType(IL.StateVar.ty x), IL.StateVar.name x)
419 :     in
420 :     List.map cvt state
421 :     end
422 : jhr 1375 val strand = Strand{
423 :     name = name,
424 : jhr 1376 tyName = N.strandTy name,
425 : jhr 1640 state = state,
426 :     output = outputVar,
427 : jhr 1375 code = ref []
428 :     }
429 :     in
430 :     AtomTable.insert strands (strandId, strand);
431 :     strand
432 :     end
433 : jhr 1115
434 :     (* return the strand with the given name *)
435 : jhr 1375 fun lookup (Prog{strands, ...}, strandId) = AtomTable.lookup strands strandId
436 : jhr 1115
437 :     (* register the strand-state initialization code. The variables are the strand
438 :     * parameters.
439 :     *)
440 : jhr 1375 fun init (Strand{name, tyName, code, ...}, params, init) = let
441 : jhr 1376 val fName = N.strandInit name
442 : jhr 1375 val params =
443 :     CL.PARAM([], CL.T_Ptr(CL.T_Named tyName), "selfOut") ::
444 : jhr 1640 List.map (fn (CL.V(ty, x)) => CL.PARAM([], ty, x)) params
445 : jhr 1375 val initFn = CL.D_Func([], CL.voidTy, fName, params, init)
446 :     in
447 :     code := initFn :: !code
448 :     end
449 : jhr 1115
450 :     (* register a strand method *)
451 : jhr 1375 fun method (Strand{name, tyName, code, ...}, methName, body) = let
452 : jhr 1640 val fName = concat[name, "_", StrandUtil.nameToString methName]
453 : jhr 1375 val params = [
454 :     CL.PARAM([], CL.T_Ptr(CL.T_Named tyName), "selfIn"),
455 :     CL.PARAM([], CL.T_Ptr(CL.T_Named tyName), "selfOut")
456 :     ]
457 : jhr 1444 val resTy = (case methName
458 : jhr 1640 of StrandUtil.Update => CL.T_Named "StrandStatus_t"
459 :     | StrandUtil.Stabilize => CL.voidTy
460 : jhr 1444 (* end case *))
461 :     val methFn = CL.D_Func(["static"], resTy, fName, params, body)
462 : jhr 1375 in
463 :     code := methFn :: !code
464 :     end
465 : jhr 1115
466 :     end
467 :    
468 :     end
469 :    
470 :     structure CBackEnd = CodeGenFn(CTarget)

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