NativelibSourceThis file provides facilities to access OCaml compiler and dynamic linker, used by the native compiler.
compile file code ~profile will compile native code to file, 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
compile_library (code, _) file is similar to compile file code but will perform some extra tweaks to handle code as a Coq lib.
val execute_library :
prefix:string ->
string ->
Nativecode.code_location_updates ->
Nativevalues.t * Nativevalues.texecute_library file upds dynamically loads library file, updates the library locations upds, and returns the values stored in rt1 and rt2
enable_library marks the given library for dynamic loading the next time link_libraries is called.