Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Annotation of /sml/trunk/src/MLRISC/ppc/c-calls/ppc-macosx.sml
ViewVC logotype

Annotation of /sml/trunk/src/MLRISC/ppc/c-calls/ppc-macosx.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1550 - (view) (download)

1 : jhr 1346 (* ppc-macosx.sml
2 :     *
3 :     * COPYRIGHT (c) 2003 John Reppy (http://www.cs.uchicago.edu/~jhr)
4 :     * All rights reserved.
5 :     *
6 :     * C function calls for the PowerPC using the MacOS X ABI.
7 :     *
8 :     * Register conventions:
9 :     *
10 :     * Register Callee-save Purpose
11 :     * -------- ----------- -------
12 :     * GPR0 no Zero
13 :     * 1 no Stack pointer
14 :     * 2 no scratch (TOC on AIX)
15 :     * 3 no arg0 and return result
16 :     * 4-10 no arg1-arg7
17 :     * 11 no scratch
18 :     * 12 no holds taget of indirect call
19 :     * 13-31 yes callee-save registers
20 :     *
21 :     * FPR0 no scratch
22 :     * 1-13 no floating-point arguments
23 :     * 14-31 yes floating-point callee-save registers
24 :     *
25 :     * V0-V1 no scratch vector registers
26 :     * 2-13 no vector argument registers
27 :     * 14-19 no scratch vector registers
28 :     * 20-31 yes callee-save vector registers
29 :     *
30 :     * LR no link register holds return address
31 :     *
32 :     * CR0-CR1 no scratch condition registers
33 :     * 2-4 yes callee-save condition registers
34 :     * 5-7 no scratch condition registers
35 :     *
36 :     * Calling convention:
37 :     *
38 :     * Return result:
39 :     * + Integer and pointer results are returned in GPR3
40 :     * + 64-bit integers (long long) returned in GPR3/GPR4
41 :     * + float/double results are returned in FPR1
42 :     * + Struct results are returned in space provided by the caller.
43 :     * The address of this space is passed to the callee as an
44 :     * implicit first argument in GPR3 and the first real argument is
45 :     * passed in GPR4.
46 :     *
47 :     * Function arguments:
48 :     * * arguments (except for floating-point values) are passed in
49 :     * registers GPR3-GPR10
50 : jhr 1438 *
51 :     * Note also that stack frames are supposed to be 16-byte aligned.
52 : jhr 1346 *)
53 :    
54 :     (* we extend the interface to support generating the stubs needed for
55 :     * dynamic linking (see "Inside MacOS X: Mach-O Runtime Architecture"
56 :     * for details.
57 :     *)
58 :     signature PPC_MACOSX_C_CALLS =
59 :     sig
60 :     include C_CALLS
61 : jhr 1438
62 :     (*
63 :     val genStub : {
64 :     name : T.rexp,
65 :     proto : CTypes.c_proto,
66 :     paramAlloc : {szb : int, align : int} -> bool,
67 :     structRet : {szb : int, align : int} -> T.rexp,
68 :     saveRestoreDedicated :
69 :     T.mlrisc list -> {save: T.stm list, restore: T.stm list},
70 :     callComment : string option,
71 :     args : c_arg list
72 :     } -> {
73 :     callseq : T.stm list,
74 :     result: T.mlrisc list
75 :     }
76 :     *)
77 :    
78 : jhr 1346 end;
79 :    
80 :     functor PPCMacOSX_CCalls (
81 :    
82 :     structure T : MLTREE
83 :    
84 : jhr 1527 ): C_CALLS = struct
85 :    
86 : jhr 1346 structure T = T
87 : jhr 1521 structure CTy = CTypes
88 : jhr 1346 structure C = PPCCells
89 :    
90 :     fun error msg = MLRiscErrorMsg.error ("PPCCompCCalls", msg)
91 :    
92 : jhr 1521 (* the location of arguments/parameters; offsets are given with respect to the
93 :     * low end of the parameter area.
94 :     *)
95 :     datatype arg_location
96 : jhr 1522 = Reg of T.ty * T.reg * T.I.machine_int option
97 :     (* integer/pointer argument in register *)
98 : jhr 1524 | FReg of T.fty * T.reg * T.I.machine_int option
99 : jhr 1522 (* floating-point argument in register *)
100 : jhr 1521 | Stk of T.ty * T.I.machine_int (* integer/pointer argument in parameter area *)
101 :     | FStk of T.fty * T.I.machine_int (* floating-point argument in parameter area *)
102 :     | Args of arg_location list
103 :    
104 : jhr 1522 val wordTy = 32
105 :     val fltTy = 32 (* MLRISC type of float *)
106 :     val dblTy = 64 (* MLRISC type of double *)
107 : jhr 1346
108 : jhr 1523 (* stack pointer *)
109 : jhr 1530 val spReg = T.REG(wordTy, C.GPReg 1)
110 : jhr 1523
111 : jhr 1521 (* registers used for parameter passing *)
112 :     val argGPRs = List.map C.GPReg [3, 4, 5, 6, 7, 8, 9, 10]
113 :     val argFPRs = List.map C.FPReg [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
114 : jhr 1530 val resGPR = C.GPReg 3
115 :     val resRegLoc = Reg(wordTy, resGPR, NONE)
116 : jhr 1522 val resFPR = C.FPReg 1
117 : jhr 1521
118 :     (* C callee-save registers *)
119 :     val calleeSaveRegs = List.map C.GPReg [
120 :     13, 14, 15, 16, 17, 18, 19, 20, 21, 22,
121 :     23, 24, 25, 26, 27, 28, 29, 30, 31
122 :     ]
123 :     val calleeSaveFRegs = List.map C.FPReg [
124 :     14, 15, 16, 17, 18, 19, 20, 21, 22,
125 :     23, 24, 25, 26, 27, 28, 29, 30, 31
126 :     ]
127 :    
128 : jhr 1523 (* C caller-save registers (including argument registers) *)
129 :     val callerSaveRegs =
130 : jhr 1528 T.FPR(T.FREG(dblTy, C.FPReg 0)) ::
131 :     (List.map (fn r => T.GPR(T.REG(wordTy, C.GPReg r))) [2, 11, 12])
132 : jhr 1523
133 : jhr 1528 val linkReg = T.GPR(T.REG(wordTy, C.lr))
134 :    
135 : jhr 1525 (* the parameter area lies just above the linkage area in the caller's frame.
136 :     * The linkage area is 24 bytes, so the first parameter is at 24(sp).
137 :     *)
138 :     val paramAreaOffset = 24
139 :    
140 : jhr 1531 (* size, padding, and natural alignment for integer types. Note that the
141 :     * padding is based on the parameter-passing description on p. 35 of the
142 :     * documentation and the alignment is from p. 31.
143 : jhr 1522 *)
144 : jhr 1550 fun sizeOfInt CTy.I_char = {sz = 1, pad = 3, align = 1}
145 :     | sizeOfInt CTy.I_short = {sz = 2, pad = 2, align = 2}
146 :     | sizeOfInt CTy.I_int = {sz = 4, pad = 0, align = 4}
147 :     | sizeOfInt CTy.I_long = {sz = 4, pad = 0, align = 4}
148 :     | sizeOfInt CTy.I_long_long = {sz = 8, pad = 0, align = 8}
149 : jhr 1521
150 : jhr 1522 (* sizes of other C types *)
151 : jhr 1531 val sizeOfPtr = {sz = 4, pad = 0, align = 4}
152 : jhr 1522
153 : jhr 1550 (* align the address to the given alignment, which must be a power of 2 *)
154 :     fun alignAddr (addr, align) = let
155 :     val mask = Word.fromInt(align-1)
156 :     in
157 :     Word.toIntX(Word.andb(Word.fromInt addr + mask, Word.notb mask))
158 :     end
159 :    
160 :     (* compute the size and alignment information for a struct; tys is the list
161 : jhr 1531 * of member types. The alignment is what Apple calls the "embedding" alignment.
162 : jhr 1550 * The total size is padded to agree with the struct's alignment.
163 : jhr 1531 *)
164 : jhr 1550 fun sizeOfStruct tys = let
165 :     fun ssz [] = {sz = 0, align = 4}
166 :     | ssz (first::rest) = let
167 :     fun f ([], maxAlign, offset) =
168 :     {sz = alignAddr(offset, maxAlign), align = maxAlign}
169 :     | f (ty::tys, maxAlign, offset) = let
170 :     val {sz, align} = sizeOfTy ty
171 :     val align = Int.min(align, 4)
172 :     val offset = alignAddr(offset, align)
173 :     in
174 :     f (tys, Int.max(maxAlign, align), offset+sz)
175 :     end
176 :     val {sz, align} = sizeOfTy first
177 : jhr 1531 in
178 : jhr 1550 f (rest, align, sz)
179 : jhr 1531 end
180 : jhr 1550 in
181 :     ssz tys
182 :     end
183 :    
184 :     (* the size alignment of a union type is the maximum of the sizes and alignments of the
185 :     * members. The final size is padded to agree with the alignment.
186 :     *)
187 :     and sizeOfUnion tys = let
188 :     fun usz [] = {sz = 0, align = 4}
189 :     | usz (first::rest) = let
190 :     fun f ([], maxAlign, maxSz) =
191 :     {sz = alignAddr(maxSz, maxAlign), align = maxAlign}
192 :     | f (ty::tys, maxAlign, maxSz) = let
193 :     val {sz, align} = sizeOfTy ty
194 :     in
195 :     f (tys, Int.max(maxAlign, align), Int.max(align, maxAlign))
196 :     end
197 :     val {sz, align} = sizeOfTy first
198 : jhr 1531 in
199 : jhr 1550 f (rest, align, sz)
200 : jhr 1531 end
201 : jhr 1525 in
202 : jhr 1550 usz tys
203 : jhr 1525 end
204 : jhr 1522
205 : jhr 1550 and sizeOfTy CTy.C_void = error "unexpected void argument type"
206 :     | sizeOfTy CTy.C_float = {sz = 4, align = 4}
207 :     | sizeOfTy CTy.C_double = {sz = 8, align = 8}
208 :     | sizeOfTy CTy.C_long_double = {sz = 8, align = 8}
209 :     | sizeOfTy (CTy.C_unsigned isz) = let
210 :     val {sz, align, ...} = sizeOfInt isz
211 :     in
212 :     {sz = sz, align = align}
213 :     end
214 :     | sizeOfTy (CTy.C_signed isz) = let
215 :     val {sz, align, ...} = sizeOfInt isz
216 :     in
217 :     {sz = sz, align = align}
218 :     end
219 :     | sizeOfTy CTy.C_PTR = {sz = 4, align = 4}
220 :     | sizeOfTy (CTy.C_ARRAY(ty, n)) = let
221 :     val {sz, align} = sizeOfTy ty
222 :     in
223 :     {sz = n*sz, align = align}
224 :     end
225 :     | sizeOfTy (CTy.C_STRUCT tys) = sizeOfStruct tys
226 :     | sizeOfTy (CTy.C_UNION tys) = sizeOfUnion tys
227 : mblume 1549
228 : jhr 1521 (* compute the layout of a C call's arguments *)
229 :     fun layout {conv, retTy, paramTys} = let
230 : jhr 1550 fun gprRes isz = (case #sz(sizeOfInt isz)
231 : jhr 1522 of 8 => raise Fail "register pairs not yet supported"
232 : jhr 1528 | _ => SOME resRegLoc
233 : jhr 1521 (* end case *))
234 : jhr 1527 val (resLoc, argGPRs, structRet) = (case retTy
235 :     of CTy.C_void => (NONE, argGPRs, NONE)
236 :     | CTy.C_float => (SOME(FReg(fltTy, resFPR, NONE)), argGPRs, NONE)
237 :     | CTy.C_double => (SOME(FReg(dblTy, resFPR, NONE)), argGPRs, NONE)
238 :     | CTy.C_long_double => (SOME(FReg(dblTy, resFPR, NONE)), argGPRs, NONE)
239 :     | CTy.C_unsigned isz => (gprRes isz, argGPRs, NONE)
240 :     | CTy.C_signed isz => (gprRes isz, argGPRs, NONE)
241 : jhr 1528 | CTy.C_PTR => (SOME resRegLoc, argGPRs, NONE)
242 : jhr 1522 | CTy.C_ARRAY _ => error "array return type"
243 : jhr 1550 | CTy.C_STRUCT s => let
244 :     val sz = #sz(sizeOfStruct s)
245 :     in
246 :     (* Note that this is a place where the MacOS X and Linux ABIs differ.
247 :     * In Linux, GPR3/GPR4 are used to return composite values of 8 bytes.
248 :     *)
249 :     (SOME resRegLoc, List.tl argGPRs, SOME{szb=sz, align=4})
250 :     end
251 :     | CTy.C_UNION u => let
252 :     val sz = #sz(sizeOfUnion u)
253 :     in
254 :     (SOME resRegLoc, List.tl argGPRs, SOME{szb=sz, align=4})
255 :     end
256 : mblume 1549 (* end case *))
257 :     fun assign ([], offset, _, _, layout) = (offset, List.rev layout)
258 : jhr 1550 | assign (ty::tys, offset, availGPRs, availFPRs, layout) = (
259 : jhr 1525 case ty
260 : jhr 1533 of CTy.C_void => error "unexpected void argument type"
261 : jhr 1522 | CTy.C_float => (case (availGPRs, availFPRs)
262 : jhr 1527 of (_::gprs, fpr::fprs) =>
263 : jhr 1525 assign (tys, offset+4, gprs, fprs, FReg(fltTy, fpr, SOME offset)::layout)
264 : jhr 1522 | ([], fpr::fprs) =>
265 : jhr 1525 assign (tys, offset+4, [], fprs, FReg(fltTy, fpr, SOME offset)::layout)
266 : jhr 1522 | ([], []) =>
267 : jhr 1525 assign (tys, offset+4, [], [], FStk(fltTy, offset)::layout)
268 : jhr 1536 | _ => error "FPRs exhausted before GPRs"
269 : jhr 1522 (* end case *))
270 : jhr 1521 | CTy.C_double =>
271 : jhr 1525 assignFPR (tys, offset, availGPRs, availFPRs, layout)
272 : jhr 1521 | CTy.C_long_double =>
273 : jhr 1525 assignFPR (tys, offset, availGPRs, availFPRs, layout)
274 : jhr 1521 | CTy.C_unsigned isz =>
275 : jhr 1550 assignGPR(sizeOfInt isz, tys, offset, availGPRs, availFPRs, layout)
276 : jhr 1521 | CTy.C_signed isz =>
277 : jhr 1550 assignGPR(sizeOfInt isz, tys, offset, availGPRs, availFPRs, layout)
278 : jhr 1521 | CTy.C_PTR =>
279 : jhr 1525 assignGPR(sizeOfPtr, tys, offset, availGPRs, availFPRs, layout)
280 : jhr 1521 | CTy.C_ARRAY _ =>
281 : jhr 1525 assignGPR(sizeOfPtr, tys, offset, availGPRs, availFPRs, layout)
282 : jhr 1550 | CTy.C_STRUCT tys' =>
283 :     assignMem(sizeOfStruct tys', tys, offset, availGPRs, availFPRs, layout)
284 :     | CTy.C_UNION tys' =>
285 :     assignMem(sizeOfUnion tys', tys, offset, availGPRs, availFPRs, layout)
286 :     (* end case *))
287 : jhr 1522 (* assign a GP register and memory for an integer/pointer argument. *)
288 : jhr 1531 and assignGPR ({sz, pad, ...}, args, offset, availGPRs, availFPRs, layout) = let
289 : jhr 1522 val (loc, availGPRs) = (case (sz, availGPRs)
290 :     of (8, _) => raise Fail "register pairs not yet supported"
291 :     | (_, []) => (Stk(wordTy, offset), [])
292 :     | (_, r1::rs) => (Reg(wordTy, r1, SOME offset), rs)
293 :     (* end case *))
294 : jhr 1527 val offset = offset + IntInf.fromInt(sz + pad)
295 : jhr 1521 in
296 : jhr 1522 assign (args, offset, availGPRs, availFPRs, loc::layout)
297 : jhr 1521 end
298 : jhr 1522 (* assign a FP register and memory/GPRs for double-precision argument. *)
299 :     and assignFPR (args, offset, availGPRs, availFPRs, layout) = let
300 :     fun continue (availGPRs, availFPRs, loc) =
301 :     assign (args, offset+8, availGPRs, availFPRs, loc::layout)
302 :     fun freg fpr = FReg(dblTy, fpr, SOME offset)
303 :     in
304 :     case (availGPRs, availFPRs)
305 :     of (_::_::gprs, fpr::fprs) => continue (gprs, fprs, freg fpr)
306 :     | (_, fpr::fprs) => continue ([], fprs, freg fpr)
307 :     | ([], []) => continue ([], [], FStk(dblTy, offset))
308 : jhr 1536 | _ => error "FPRs exhausted before GPRs"
309 : jhr 1522 (* end case *)
310 :     end
311 : jhr 1550 (* assign a argument locations to pass a composite argument (struct or union) *)
312 :     and assignMem ({sz, ...}, args, offset, availGPRs, availFPRs, layout) = let
313 :     val sz = IntInf.fromInt sz
314 :     fun assignMem (relOffset, availGPRs, fields) =
315 :     if (relOffset < sz)
316 :     then let
317 :     val (loc, availGPRs) = (case availGPRs
318 :     of [] => (Stk(wordTy, offset+relOffset), [])
319 :     | r1::rs => (Reg(wordTy, r1, SOME(offset+relOffset)), rs)
320 :     (* end case *))
321 :     in
322 :     assignMem (relOffset+4, availGPRs, loc::fields)
323 :     end
324 :     else assign (args, offset+relOffset, availGPRs, availFPRs,
325 :     Args(List.rev fields) :: layout)
326 :     in
327 :     assignMem (0, availGPRs, [])
328 :     end
329 : jhr 1536 val (sz, argLocs) = assign (paramTys, 0, argGPRs, argFPRs, [])
330 : jhr 1523 in {
331 : jhr 1536 argLocs = argLocs,
332 :     argMem = {szb = IntInf.toInt sz, align = 4},
333 : jhr 1527 resLoc = resLoc,
334 : jhr 1530 structRetLoc = structRet
335 : jhr 1523 } end
336 : jhr 1521
337 : jhr 1346 datatype c_arg
338 :     = ARG of T.rexp
339 :     | FARG of T.fexp
340 :     | ARGS of c_arg list
341 :    
342 : jhr 1523 val memRg = T.Region.memory
343 :     val stkRg = T.Region.memory
344 : jhr 1346
345 : jhr 1525 (* SP-based address of parameter at given offset *)
346 : jhr 1530 fun paramAddr off =
347 :     T.ADD(wordTy, spReg, T.LI(off + IntInf.fromInt paramAreaOffset))
348 : jhr 1525
349 : jhr 1445 fun genCall {
350 :     name, proto, paramAlloc, structRet, saveRestoreDedicated,
351 :     callComment, args
352 :     } = let
353 :     val {conv, retTy, paramTys} = proto
354 : jhr 1536 val {argLocs, argMem, resLoc, structRetLoc} = layout proto
355 :     (* inform the client of the size of the parameter area *)
356 :     val _ = if not(paramAlloc argMem)
357 :     then raise Fail "parameter memory allocation not implemented yet"
358 :     else ()
359 : jhr 1523 (* generate code to assign the arguments to their locations *)
360 :     fun assignArgs ([], [], stms) = stms
361 :     | assignArgs (Reg(ty, r, _) :: locs, ARG exp :: args, stms) =
362 :     assignArgs (locs, args, T.MV(ty, r, exp) :: stms)
363 :     | assignArgs (Stk(ty, off) :: locs, ARG exp :: args, stms) =
364 : jhr 1525 assignArgs (locs, args, T.STORE(ty, paramAddr off, exp, stkRg) :: stms)
365 : jhr 1527 | assignArgs (FReg(ty, r, _) :: locs, FARG fexp :: args, stms) =
366 : jhr 1523 assignArgs (locs, args, T.FMV(ty, r, fexp) :: stms)
367 :     | assignArgs (FStk(ty, off) :: locs, FARG fexp :: args, stms) =
368 : jhr 1525 assignArgs (locs, args, T.FSTORE(ty, paramAddr off, fexp, stkRg) :: stms)
369 : jhr 1523 | assignArgs ((Args locs') :: locs, (ARGS args') :: args, stms) =
370 : jhr 1544 raise Fail "ARGS constructor is obsolete"
371 :     | assignArgs ((Args locs') :: locs, ARG exp :: args, stms) = let
372 : jhr 1545 (* MLRISC expression for address inside the source struct *)
373 : jhr 1544 fun addr 0 = T.LOAD(wordTy, exp, memRg)
374 :     | addr offset = T.LOAD(wordTy, T.ADD(wordTy, exp, T.LI offset), memRg)
375 :     fun copy ([], _, stms) = assignArgs(locs, args, stms)
376 :     | copy (Reg(ty, r, _) :: locs, offset, stms) =
377 :     copy (locs, offset+4, T.MV(ty, r, addr offset)::stms)
378 :     | copy (Stk(ty, off) :: locs, offset, stms) = let
379 :     val r = C.newReg()
380 :     in
381 :     copy (locs, offset+4,
382 :     T.STORE(ty, paramAddr off, T.REG(wordTy, r), stkRg)
383 :     :: T.MV(ty, r, addr offset) :: stms)
384 :     end
385 :     | copy _ = raise Fail "unexpected FReg/FStk/Args in location list"
386 :     in
387 :     (* copy data from memory specified by exp to locs' *)
388 :     copy (locs', 0, stms)
389 :     end
390 : jhr 1523 | assignArgs _ = error "argument/formal mismatch"
391 : jhr 1527 val argSetupCode = List.rev(assignArgs(argLocs, args, []))
392 : jhr 1523 (* convert the result location to an MLRISC expression list *)
393 :     val result = (case resLoc
394 :     of NONE => []
395 : jhr 1527 | SOME(Reg(ty, r, _)) => [T.GPR(T.REG(ty, r))]
396 :     | SOME(FReg(ty, r, _)) => [T.FPR(T.FREG(ty, r))]
397 : jhr 1523 | SOME _ => raise Fail "bogus result location"
398 :     (* end case *))
399 : jhr 1530 (* make struct return-area setup (if necessary) *)
400 :     val setupStructRet = (case structRetLoc
401 :     of NONE => []
402 :     | SOME loc => let
403 :     val structAddr = structRet loc
404 :     in
405 :     [T.MV(wordTy, resGPR, structAddr)]
406 :     end
407 :     (* end case *))
408 : jhr 1523 (* determine the registers used and defined by this call *)
409 :     val (uses, defs) = let
410 :     val locs = (case resLoc
411 :     of NONE => argLocs
412 :     | SOME loc => loc::argLocs
413 :     (* end case *))
414 :     (* get the list of registers used to pass arguments and results *)
415 :     fun addArgReg (Reg(ty, r, _)::locs, argRegs) =
416 :     addArgReg (locs, T.GPR(T.REG(ty, r))::argRegs)
417 :     | addArgReg (FReg(ty, r, _)::locs, argRegs) =
418 :     addArgReg (locs, T.FPR(T.FREG(ty, r))::argRegs)
419 :     | addArgReg ((Args locs')::locs, argRegs) =
420 :     addArgReg (locs, addArgReg(locs', argRegs))
421 :     | addArgReg (_::locs, argRegs) = addArgReg(locs, argRegs)
422 : jhr 1533 | addArgReg ([], argRegs) = argRegs
423 : jhr 1523 val argRegs = addArgReg (locs, [])
424 :     in
425 : jhr 1528 (argRegs, linkReg :: callerSaveRegs)
426 : jhr 1523 end
427 :     (* the actual call instruction *)
428 :     val callStm = T.CALL {
429 :     funct = name, targets = [],
430 :     defs = defs, uses = uses,
431 :     region = memRg, pops = 0
432 :     }
433 :     (* annotate, if necessary *)
434 :     val callStm = (case callComment
435 :     of NONE => callStm
436 :     | SOME c => T.ANNOTATION(callStm, #create MLRiscAnnotations.COMMENT c)
437 :     (* end case *))
438 : jhr 1530 (* take care of dedicated client registers *)
439 :     val {save, restore} = saveRestoreDedicated defs
440 : jhr 1445 val callseq = List.concat [
441 : jhr 1530 setupStructRet,
442 : jhr 1523 argSetupCode,
443 : jhr 1530 save,
444 :     [callStm],
445 :     restore
446 : jhr 1445 ]
447 :     in
448 :     (* check calling convention *)
449 :     case conv
450 :     of ("" | "ccall") => ()
451 :     | _ => error (concat [
452 :     "unknown calling convention \"",
453 :     String.toString conv, "\""
454 :     ])
455 :     (* end case *);
456 :     {callseq = callseq, result = result}
457 :     end
458 : jhr 1346
459 : jhr 1445 end

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