package b0

  1. Overview
  2. Docs
Software construction and deployment kit

Install

Dune Dependency

Authors

Maintainers

Sources

b0-0.0.5.tbz
sha512=00a6868b4dfa34565d0141b335622a81a0e8d5b9e3c6dfad025dabfa3df2db2a1302b492953bbbce30c3a4406c324fcec25250a00b38f6d18a69e15605e3b07e

doc/b0_b00_kit/B00_ocaml/Link/index.html

Module B00_ocaml.Link

Linking.

Tool invocations for linking.

val byte : ?post_exec:(B000.Op.t -> unit) -> ?k:(int -> unit) -> B00.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.

val native : ?post_exec:(B000.Op.t -> unit) -> ?k:(int -> unit) -> B00.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). An include is added to each element of cobjs in order to lookup potential C stubs.

val code : ?post_exec:(B000.Op.t -> unit) -> ?k:(int -> unit) -> B00.Memo.t -> conf:Conf.t -> opts:B0_std.Cmd.t -> code:Conf.code -> 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.

OCaml

Innovation. Community. Security.