1995-08-09 08:06:35 -07:00
|
|
|
(***********************************************************************)
|
|
|
|
(* *)
|
2011-07-27 07:17:02 -07:00
|
|
|
(* OCaml *)
|
1995-08-09 08:06:35 -07:00
|
|
|
(* *)
|
|
|
|
(* Xavier Leroy, projet Cristal, INRIA Rocquencourt *)
|
|
|
|
(* *)
|
1996-04-30 07:53:58 -07:00
|
|
|
(* Copyright 1996 Institut National de Recherche en Informatique et *)
|
1999-11-17 10:59:06 -08:00
|
|
|
(* en Automatique. All rights reserved. This file is distributed *)
|
|
|
|
(* under the terms of the Q Public License version 1.0. *)
|
1995-08-09 08:06:35 -07:00
|
|
|
(* *)
|
|
|
|
(***********************************************************************)
|
|
|
|
|
1995-07-27 10:47:52 -07:00
|
|
|
(* Description of primitive functions *)
|
|
|
|
|
|
|
|
type description =
|
|
|
|
{ prim_name: string; (* Name of primitive or C function *)
|
|
|
|
prim_arity: int; (* Number of arguments *)
|
|
|
|
prim_alloc: bool; (* Does it allocates or raise? *)
|
|
|
|
prim_native_name: string; (* Name of C function for the nat. code gen. *)
|
|
|
|
prim_native_float: bool } (* Does the above operate on unboxed floats? *)
|
|
|
|
|
1997-05-13 07:07:00 -07:00
|
|
|
val parse_declaration: int -> string list -> description
|
2000-03-13 08:49:01 -08:00
|
|
|
|
2001-08-06 05:28:50 -07:00
|
|
|
val description_list: description -> string list
|
2008-07-23 22:35:22 -07:00
|
|
|
|
|
|
|
val native_name: description -> string
|
|
|
|
val byte_name: description -> string
|