package coq-core

  1. Overview
  2. Docs
The Coq Proof Assistant -- Core Binaries and Tools

Install

Dune Dependency

Authors

Maintainers

Sources

coq-8.19.0.tar.gz
md5=64b49dbc3205477bd7517642c0b9cbb6
sha512=02fb5b4fb575af79e092492cbec6dc0d15a1d74a07f827f657a72d4e6066532630e5a6d15be4acdb73314bd40b9a321f9ea0584e0ccfe51fd3a56353bd30db9b

doc/coq-core.kernel/Nativelib/index.html

Module NativelibSource

This file provides facilities to access OCaml compiler and dynamic linker, used by the native compiler.

Sourceval include_dirs : CUnix.physical_path list ref
Sourceval get_load_paths : (unit -> string list) ref
Sourceval load_obj : (string -> unit) ref
Sourceval get_ml_filename : unit -> string * string
Sourceval compile : string -> Nativecode.global list -> profile:bool -> string

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

Sourcetype native_library = Nativecode.global list * Nativevalues.symbols
Sourceval compile_library : native_library -> string -> unit

compile_library (code, _) file is similar to compile file code but will perform some extra tweaks to handle code as a Coq lib.

Sourceval execute_library : prefix:string -> string -> Nativecode.code_location_updates -> Nativevalues.t * Nativevalues.t

execute_library file upds dynamically loads library file, updates the library locations upds, and returns the values stored in rt1 and rt2

Sourceval enable_library : string -> Names.DirPath.t -> unit

enable_library marks the given library for dynamic loading the next time link_libraries is called.

OCaml

Innovation. Community. Security.