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-02 09:41:48 -07:00
|
|
|
(* From lambda to assembly code *)
|
|
|
|
|
2000-04-21 01:13:22 -07:00
|
|
|
val compile_implementation :
|
2007-11-06 07:16:56 -08:00
|
|
|
?toplevel:(string -> bool) ->
|
2012-01-20 06:23:34 -08:00
|
|
|
string -> Format.formatter -> int * Lambda.lambda -> unit
|
2000-04-21 01:13:22 -07:00
|
|
|
val compile_phrase :
|
2012-01-20 06:23:34 -08:00
|
|
|
Format.formatter -> Cmm.phrase -> unit
|
1995-07-02 09:41:48 -07:00
|
|
|
|
|
|
|
type error = Assembler_error of string
|
|
|
|
exception Error of error
|
2000-04-21 01:13:22 -07:00
|
|
|
val report_error: Format.formatter -> error -> unit
|
2014-09-03 05:48:13 -07:00
|
|
|
|
|
|
|
|
|
|
|
val compile_unit:
|
|
|
|
string(*asm file*) -> bool(*keep asm*) ->
|
|
|
|
string(*obj file*) -> (unit -> unit) -> unit
|