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 (** Native compilation for .ml and .mli files. *)
17
18 val interface: source_file:string -> output_prefix:string -> unit
19
20 val implementation:
21 backend:(module Backend_intf.S)
22 -> source_file:string -> output_prefix:string -> unit
23
24 (** {2 Internal functions} **)
25
26 val clambda :
27 Compile_common.info ->
28 (module Backend_intf.S) ->
29 Typedtree.structure * Typedtree.module_coercion -> unit
30 (** [clambda info typed] applies the regular compilation pipeline to the
31 given typechecked implementation and outputs the resulting files.
32 *)
33
34 val flambda :
35 Compile_common.info ->
36 (module Backend_intf.S) ->
37 Typedtree.structure * Typedtree.module_coercion -> unit
38 (** [flambda info backend typed] applies the Flambda compilation pipeline to the
39 given typechecked implementation and outputs the resulting files.
40 *)
41