package b0

  1. Overview
  2. Docs
Software construction and deployment kit

Install

dune-project
 Dependency

Authors

Maintainers

Sources

b0-0.0.6.tbz
sha512=e9aa779e66c08fc763019f16d4706f465d16c05d6400b58fbd0313317ef33ddea51952e2b058db28e65f7ddb7012f328c8bf02d8f1da17bb543348541a2587f0

doc/b0.file/B0_ocaml/Link/index.html

Module B0_ocaml.LinkSource

Linking.

Sourceval byte : ?post_exec:(B0_zero.Op.t -> unit) -> ?k:(B0_zero.Op.t -> int -> unit) -> B0_memo.t -> conf:Conf.t -> opts:B0_std.Cmd.t -> c_objs:B0_std.Fpath.t list -> cobjs:B0_std.Fpath.t list -> o:B0_std.Fpath.t -> unit

byte_exe m ~opts ~c_objs ~cmos ~o links the C objects c_objs and the OCaml compilation object files cobjs into a byte code executable o compiled in -custom mode. In cobjs you need to add the dll of cma files that have stubs (they are not added to the invocation but the compiler reads them).

Sourceval native : ?post_exec:(B0_zero.Op.t -> unit) -> ?k:(B0_zero.Op.t -> int -> unit) -> B0_memo.t -> conf:Conf.t -> opts:B0_std.Cmd.t -> c_objs:B0_std.Fpath.t list -> cobjs:B0_std.Fpath.t list -> o:B0_std.Fpath.t -> unit

byte_exe m ~opts ~c_objs ~cobjs ~o links the C objects c_objs and the OCaml compilation object files cobjs into a native code executable o, in cobjs you need to add the C lib_ext file of cmxa files if they exist (since 4.12 they may not exist) and their C stubs if they have some (they are not added to the invocation but the compiler reads them). An include is added to each element of cobjs in order to lookup potential C stubs.

Sourceval code : ?post_exec:(B0_zero.Op.t -> unit) -> ?k:(B0_zero.Op.t -> int -> unit) -> B0_memo.t -> conf:Conf.t -> opts:B0_std.Cmd.t -> code:Code.t -> c_objs:B0_std.Fpath.t list -> cobjs:B0_std.Fpath.t list -> o:B0_std.Fpath.t -> unit

code is byte or native according to code.