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 (** Bytecode compilation for .ml and .mli files. *)
17
18 val interface:
19 source_file:string -> output_prefix:string -> unit
20 val implementation:
21 source_file:string -> output_prefix:string -> unit
22
23 (** {2 Internal functions} **)
24
25 val to_bytecode :
26 Compile_common.info ->
27 Typedtree.structure * Typedtree.module_coercion ->
28 Instruct.instruction list * Ident.Set.t
29 (** [to_bytecode info typed] takes a typechecked implementation
30 and returns its bytecode.
31 *)
32
33 val emit_bytecode :
34 Compile_common.info -> Instruct.instruction list * Ident.Set.t -> unit
35 (** [emit_bytecode bytecode] output the bytecode executable. *)
36