package melange-compiler-libs

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Melange_compiler_libs.ConfigSource

System configuration

Warning: this module is unstable and part of compiler-libs.

Sourceval version : string

The current version number of the system

The directory containing the binary programs

Sourceval standard_library : string

The directory containing the standard libraries

Sourceval syntax_kind : [ `ml | `reason | `rescript ] ref
Sourceval bs_only : bool ref
Sourceval unsafe_empty_array : bool ref
Sourceval ccomp_type : string

The "kind" of the C compiler, assembler and linker used: one of "cc" (for Unix-style C compilers) "msvc" (for Microsoft Visual C++ and MASM)

Sourceval c_compiler : string

The compiler to use for compiling C files

Sourceval c_output_obj : string

Name of the option of the C compiler for specifying the output file

Sourceval c_has_debug_prefix_map : bool

Whether the C compiler supports -fdebug-prefix-map

Sourceval as_has_debug_prefix_map : bool

Whether the assembler supports --debug-prefix-map

Sourceval ocamlc_cflags : string

The flags ocamlc should pass to the C compiler

Sourceval ocamlc_cppflags : string

The flags ocamlc should pass to the C preprocessor

Sourceval ocamlopt_cflags : string
  • deprecated

    ocamlc_cflags should be used instead. The flags ocamlopt should pass to the C compiler

Sourceval ocamlopt_cppflags : string
  • deprecated

    ocamlc_cppflags should be used instead. The flags ocamlopt should pass to the C preprocessor

Sourceval bytecomp_c_libraries : string

The C libraries to link with custom runtimes

Sourceval native_c_libraries : string

The C libraries to link with native-code programs

Sourceval native_pack_linker : string

The linker to use for packaging (ocamlopt -pack) and for partial links (ocamlopt -output-obj).

Sourceval mkdll : string

The linker command line to build dynamic libraries.

Sourceval mkexe : string

The linker command line to build executables.

Sourceval mkmaindll : string

The linker command line to build main programs as dlls.

Sourceval ranlib : string

Command to randomize a library, or "" if not needed

Sourceval default_rpath : string

Option to add a directory to be searched for libraries at runtime (used by ocamlmklib)

Sourceval mksharedlibrpath : string

Option to add a directory to be searched for shared libraries at runtime (used by ocamlmklib)

Sourceval ar : string

Name of the ar command, or "" if not needed (MSVC)

Sourceval interface_suffix : string ref

Suffix for interface file names

Sourceval exec_magic_number : string

Magic number for bytecode executable files

Sourceval cmi_magic_number : string

Magic number for compiled interface files

Sourceval cmo_magic_number : string

Magic number for object bytecode files

Sourceval cma_magic_number : string

Magic number for archive files

Sourceval cmx_magic_number : string

Magic number for compilation unit descriptions

Sourceval cmxa_magic_number : string

Magic number for libraries of compilation unit descriptions

Sourceval ast_intf_magic_number : string

Magic number for file holding an interface syntax tree

Sourceval ast_impl_magic_number : string

Magic number for file holding an implementation syntax tree

Sourceval cmxs_magic_number : string

Magic number for dynamically-loadable plugins

Sourceval cmt_magic_number : string

Magic number for compiled interface files

Sourceval linear_magic_number : string

Magic number for Linear internal representation files

Sourceval max_tag : int

Biggest tag that can be stored in the header of a regular block.

Sourceval lazy_tag : int

Normally the same as Obj.lazy_tag. Separate definition because of technical reasons for bootstrapping.

Sourceval max_young_wosize : int

Maximal size of arrays that are directly allocated in the minor heap

Sourceval stack_threshold : int

Size in words of safe area at bottom of VM stack, see runtime/caml/config.h

Sourceval stack_safety_margin : int

Size in words of the safety margin between the bottom of the stack and the stack pointer. This margin can be used by intermediate computations of some instructions, or the event handler.

Sourceval architecture : string

Name of processor type for the native-code compiler

Sourceval model : string

Name of processor submodel for the native-code compiler

Sourceval system : string

Name of operating system for the native-code compiler

Sourceval asm : string

The assembler (and flags) to use for assembling ocamlopt-generated code.

Sourceval asm_cfi_supported : bool

Whether assembler understands CFI directives

Sourceval with_frame_pointers : bool

Whether assembler should maintain frame pointers

Sourceval ext_obj : string

Extension for object files, e.g. .o under Unix.

Sourceval ext_asm : string

Extension for assembler files, e.g. .s under Unix.

Sourceval ext_lib : string

Extension for library files, e.g. .a under Unix.

Sourceval ext_dll : string

Extension for dynamically-loaded libraries, e.g. .so under Unix.

Sourceval ext_exe : string

Extension for executable programs, e.g. .exe under Windows.

  • since 4.12.0
Sourceval default_executable_name : string

Name of executable produced by linking if none is given with -o, e.g. a.out under Unix.

Sourceval systhread_supported : bool

Whether the system thread library is implemented

Sourceval flexdll_dirs : string list

Directories needed for the FlexDLL objects

Sourceval host : string

Whether the compiler is a cross-compiler

Sourceval target : string

Whether the compiler is a cross-compiler

Sourceval flambda : bool

Whether the compiler was configured for flambda

Sourceval with_flambda_invariants : bool

Whether the invariants checks for flambda are enabled

Sourceval with_cmm_invariants : bool

Whether the invariants checks for Cmm are enabled

Sourceval profinfo : bool

Whether the compiler was configured for profiling

Sourceval profinfo_width : int

How many bits are to be used in values' headers for profiling information

Sourceval safe_string : bool

Whether the compiler was configured with -force-safe-string; in that case, the -unsafe-string compile-time option is unavailable

  • since 4.05.0
Sourceval default_safe_string : bool

Whether the compiler was configured to use the -safe-string or -unsafe-string compile-time option by default.

  • since 4.06.0
Sourceval flat_float_array : bool

Whether the compiler and runtime automagically flatten float arrays

Sourceval function_sections : bool

Whether the compiler was configured to generate each function in a separate section

Sourceval windows_unicode : bool

Whether Windows Unicode runtime is enabled

Sourceval naked_pointers : bool

Whether the runtime supports naked pointers

  • since 4.14.0
Sourceval supports_shared_libraries : bool

Whether shared libraries are supported

  • since 4.08.0
Sourceval afl_instrument : bool

Whether afl-fuzz instrumentation is generated by default

Sourceval print_config : out_channel -> unit

Access to configuration values

Sourceval config_var : string -> string option

the configuration value of a variable, if it exists

OCaml

Innovation. Community. Security.