Add copyright notices and new function String.chomp
[ocaml.git] / asmcomp / asmlink.mli
blob28c5287daf294ed5043c0852a9e9657654e9333a
1 (***********************************************************************)
2 (* *)
3 (* Objective Caml *)
4 (* *)
5 (* Xavier Leroy, projet Cristal, INRIA Rocquencourt *)
6 (* *)
7 (* Copyright 1996 Institut National de Recherche en Informatique et *)
8 (* en Automatique. All rights reserved. This file is distributed *)
9 (* under the terms of the Q Public License version 1.0. *)
10 (* *)
11 (***********************************************************************)
13 (* $Id$ *)
15 (* Link a set of .cmx/.o files and produce an executable *)
17 open Format
19 val link: formatter -> string list -> string -> unit
21 val check_consistency: string -> Compilenv.unit_infos -> Digest.t -> unit
22 val extract_crc_interfaces: unit -> (string * Digest.t) list
23 val extract_crc_implementations: unit -> (string * Digest.t) list
25 type error =
26 File_not_found of string
27 | Not_an_object_file of string
28 | Missing_implementations of (string * string list) list
29 | Inconsistent_interface of string * string * string
30 | Inconsistent_implementation of string * string * string
31 | Assembler_error of string
32 | Linking_error
33 | Multiple_definition of string * string * string
34 | Missing_cmx of string * string
36 exception Error of error
38 val report_error: formatter -> error -> unit