package b0
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha512=e9aa779e66c08fc763019f16d4706f465d16c05d6400b58fbd0313317ef33ddea51952e2b058db28e65f7ddb7012f328c8bf02d8f1da17bb543348541a2587f0
doc/b0.file/B0_ocaml/Cobj/index.html
Module B0_ocaml.Cobj
Source
Compiled object information.
archive_ext_of_code code
is .cma
or .cmxa
according to code
.
object_ext_of_code code
is .cmo
or .cmx
according to code
.
Compilation objects
The type for compilation objects. This can represent one of a cmi
, cmti
, cmo
, cmx
, cmt
, cma
or cmxa
file.
file c
is the file path of c
.
defs c
are the modules defined by c
. If there's more than one you are looking an archive.
deps c
is the set of modules needed by defs c
. More precisely these are the module interfaces imported by c
. See also link_deps
.
link_deps c
is the set of modules needed to link defs c
.
Note. Unclear whether this is the right data. Basically these are the module references that of deps
whose name is in the required globals (bytecode) or imported implementations (native code) as reported by ocamlobjinfo. Initially we'd use deps
for link dependencies but it turns out that this may break on certain install structures. It's unclear whether we need both deps
and link_deps
and/or if that's the correct information.
pp
formats an compilation object.
sort ~deps cobjs
is cobjs
stable sorted in dependency order according to deps
(defaults to link_deps
), tupled with external dependencies needed by cobjs
.
compare
is a total order on compilation objects compatible with equal
.
IO
write m ~cobjs o
writes information about the compilation cobjs
to o
.
read m file
has the cobjs
of a write
to file
.
of_string ~file data
parses compilation object information from data
as output by Tool.ocamlobjinfo
assuming it was read from file
(defaults to B0_std.Fpath.dash
).