diff options
author | mdenes <mdenes@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2013-01-22 17:37:00 +0000 |
---|---|---|
committer | mdenes <mdenes@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2013-01-22 17:37:00 +0000 |
commit | 6b908b5185a55a27a82c2b0fce4713812adde156 (patch) | |
tree | c2857724d8b22ae3d7a91b3a683a57206caf9b54 /kernel/nativelib.mli | |
parent | 62ce65dadb0afb8815b26069246832662846c7ec (diff) |
New implementation of the conversion test, using normalization by evaluation to
native OCaml code.
Warning: the "retroknowledge" mechanism has not been ported to the native
compiler, because integers and persistent arrays will ultimately be defined as
primitive constructions. Until then, computation on numbers may be faster using
the VM, since it takes advantage of machine integers.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16136 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'kernel/nativelib.mli')
-rw-r--r-- | kernel/nativelib.mli | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/kernel/nativelib.mli b/kernel/nativelib.mli new file mode 100644 index 000000000..0cbe4ccd5 --- /dev/null +++ b/kernel/nativelib.mli @@ -0,0 +1,34 @@ +(************************************************************************) +(* v * The Coq Proof Assistant / The Coq Development Team *) +(* <O___,, * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2013 *) +(* \VV/ **************************************************************) +(* // * This file is distributed under the terms of the *) +(* * GNU Lesser General Public License Version 2.1 *) +(************************************************************************) +open Names +open Term +open Nativevalues +open Nativecode +open Pre_env + +(** This file provides facilities to access OCaml compiler and dynamic linker, +used by the native compiler. *) + +val get_load_paths : (unit -> string list) ref + +val load_obj : (string -> unit) ref + +val get_ml_filename : unit -> string * string + +val write_ml_code : string -> + ?header:Nativecode.global list -> global list -> unit + +val call_compiler : string -> string list -> int * string + +val compile : string -> global list -> int * string + +val call_linker : + fatal:bool -> string -> string -> code_location_updates option -> unit + +val rt1 : Nativevalues.t ref +val rt2 : Nativevalues.t ref |