Module Nativelib
This file provides facilities to access OCaml compiler and dynamic linker, used by the native compiler.
val output_dir : stringval get_load_paths : (unit -> string list) Stdlib.refval load_obj : (string -> unit) Stdlib.refval get_ml_filename : unit -> string * stringval compile : string -> Nativecode.global list -> profile:bool -> stringcompile file code ~profilewill compile nativecodetofile, and return the name of the object file; this name depends on whether are in byte mode or not; file is expected to be .ml file
val compile_library : Names.DirPath.t -> Nativecode.global list -> string -> unitcompile_library lib code fileis similar tocompile file codebut will perform some extra tweaks to handlecodeas a Coq lib.
val call_linker : ?fatal:bool -> Environ.env -> prefix:string -> string -> Nativecode.code_location_updates option -> unitval link_library : Environ.env -> prefix:string -> dirname:string -> basename:string -> unitval rt1 : Nativevalues.t Stdlib.refval rt2 : Nativevalues.t Stdlib.refval get_library_native_symbols : Names.DirPath.t -> Nativevalues.symbolsStrictly for usage by code produced by native compute.