Module Brzo_b0_ocaml.Link

OCaml linking.

module Deps : sig ... end

Link dependencies.

val byte_exe : ?⁠args:B0_std.Cmd.t -> B00.Memo.t -> c_objs:B0_std.Fpath.t list -> cmos:B0_std.Fpath.t list -> o:B0_std.Fpath.t -> unit

byte_exe m ~args ~c_objs ~cmos ~o links the C objects c_objs and cmo files cmos into a byte code executable o compiled in -custom mode.

val native_exe : ?⁠args:B0_std.Cmd.t -> B00.Memo.t -> c_objs:B0_std.Fpath.t list -> cmxs:B0_std.Fpath.t list -> o:B0_std.Fpath.t -> unit

byte_exe m ~args ~c_objs ~cmxs ~o links the C objects c_objs and cmxs files cmxs into a byte code executable o. An include is added to each element of cmxs in order to lookup potential C stubs.