Module Conf.OCaml
OCaml configuration.
OCaml system configuration
type conf= ttype tThe type for OCaml configurations.
val v : conf -> os -> tv c osis the configuration of the OCaml system for the OSosobtained by reading the output oftool "ocamlc" oswith the-configoption.
val find : string -> t -> string optionfind k clooks up keykin configurationc.
val version : t -> int * int * int * string optionversionis the compiler version string"major.minor[.patchlevel][+additional-info]"parsed into(major, minor, patch, additional-info).
val ext_asm : t -> stringext_asmis the file extension for assembly files, e.g.".s".
val ext_obj : t -> stringext_asmis the file extension for C object files, e.g.".o".
val ext_lib : t -> stringext_libis the file extension for C static libraries, e.g.".a".
val ext_dll : t -> stringext_dllis the file extension for C dynamically linked libraries, e.g.".so".
val ext_exe : t -> stringext_exeis the file extension for binary executables, e.g.".exe"or"". Until at least OCaml 4.03 this information is not readily available (see PR #7173) and discovered as described in this message.
val native : t -> boolnativeistrueif native compilation (i.e.ocamlopt) is available. Until at least OCaml 4.03 this information is not readily available (see PR #7173) andtrueis returned iff the standard library directory has thelibasmrunC static library.
val native_dynlink : t -> boolnative_dynlinkistrueif native dynamic linking is available. Until at least OCaml 4.03 this information is not readily available (see PR #7173) andtrueis returned iff the standard library directory has thedynlink.cmxalibrary.
val word_size : t -> intword_sizeis the bit size of one word on the OS that will execute the programs produced by the compiler (i.e. the value ofSys.word_size in these programs). Until at least OCaml 4.03 this information is not readily available (see PR #7173) and the information is read from the C SIZEOF_PTR macro defined in the filecaml/config.hof the standard library directory.
val dump : Stdlib.Format.formatter -> t -> unitdump ppf cprints an unspecified representation ofconppf.