Module Nativelib
This file provides facilities to access OCaml compiler and dynamic linker, used by the native compiler.
val output_dir : CUnix.physical_path Stdlib.refval include_dirs : CUnix.physical_path list Stdlib.refval 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
type native_library= Nativecode.global list * Nativevalues.symbols
val compile_library : native_library -> string -> unitcompile_library (code, _) fileis similar tocompile file codebut will perform some extra tweaks to handlecodeas a Coq lib.
val execute_library : prefix:string -> string -> Nativecode.code_location_updates -> Nativevalues.t * Nativevalues.texecute_library file updsdynamically loads libraryfile, updates the library locationsupds, and returns the values stored inrt1andrt2
val enable_library : string -> Names.DirPath.t -> unitenable_librarymarks the given library for dynamic loading the next timelink_librariesis called.
val link_libraries : unit -> unitval rt1 : Nativevalues.t Stdlib.refval rt2 : Nativevalues.t Stdlib.ref