1 (**************************************************************************)
2 (* *)
3 (* OCaml *)
4 (* *)
5 (* Xavier Leroy, projet Cristal, INRIA Rocquencourt *)
6 (* *)
7 (* Copyright 1996 Institut National de Recherche en Informatique et *)
8 (* en Automatique. *)
9 (* *)
10 (* All rights reserved. This file is distributed under the terms of *)
11 (* the GNU Lesser General Public License version 2.1, with the *)
12 (* special exception on linking described in the file LICENSE. *)
13 (* *)
14 (**************************************************************************)
15
16 external global_data : unit -> Obj.t array = "caml_get_global_data"
17 external realloc_global_data : int -> unit = "caml_realloc_global"
18 type closure = unit -> Obj.t
19 type bytecode
20 external reify_bytecode :
21 bytes array -> Instruct.debug_event list array -> string option ->
22 bytecode * closure
23 = "caml_reify_bytecode"
24 external release_bytecode : bytecode -> unit
25 = "caml_static_release_bytecode"
26 external invoke_traced_function : Obj.t -> Obj.t -> Obj.t -> Obj.t
27 = "caml_invoke_traced_function"
28 external get_section_table : unit -> (string * Obj.t) list
29 = "caml_get_section_table"
30