| 1 | (************************************************************************) |
| 2 | (* * The Rocq Prover / The Rocq Development Team *) |
| 3 | (* v * Copyright INRIA, CNRS and contributors *) |
| 4 | (* <O___,, * (see version control and CREDITS file for authors & dates) *) |
| 5 | (* \VV/ **************************************************************) |
| 6 | (* // * This file is distributed under the terms of the *) |
| 7 | (* * GNU Lesser General Public License Version 2.1 *) |
| 8 | (* * (see LICENSE file for the text of the license) *) |
| 9 | (************************************************************************) |
| 10 | |
| 11 | open Names |
| 12 | open Vmemitcodes |
| 13 | |
| 14 | type t |
| 15 | (** Type of VM libraries. *) |
| 16 | |
| 17 | type index |
| 18 | |
| 19 | type indirect_code = index pbody_code |
| 20 | |
| 21 | type compiled_library |
| 22 | type on_disk |
| 23 | |
| 24 | val vm_segment : compiled_library ObjFile.id |
| 25 | |
| 26 | val empty : t |
| 27 | |
| 28 | val set_path : DirPath.t -> t -> t |
| 29 | |
| 30 | val add : to_patch -> t -> t * index |
| 31 | |
| 32 | val load : DirPath.t -> file:string -> ObjFile.in_handle -> on_disk |
| 33 | |
| 34 | val link : on_disk -> t -> t |
| 35 | |
| 36 | val inject : compiled_library -> on_disk |
| 37 | |
| 38 | val resolve : index -> t -> to_patch |
| 39 | |
| 40 | val export : t -> compiled_library |