text
stringlengths
12
786k
let mk_inline_cost arg descr default f = Printf . sprintf " - inline -% s - cost " arg , Arg . String f , Printf . sprintf " < n >|< round >=< n [ , . . . ] > The cost of not removing % s during \ inlining ( default % d , higher numbers more costly ) " descr default ; ; ...
let mk_inline_call_cost = mk_inline_cost " call " " a call " Clflags . default_inline_call_cost
let mk_inline_alloc_cost = mk_inline_cost " alloc " " an allocation " Clflags . default_inline_alloc_cost
let mk_inline_prim_cost = mk_inline_cost " prim " " a primitive " Clflags . default_inline_prim_cost
let mk_inline_branch_cost = mk_inline_cost " branch " " a conditional " Clflags . default_inline_branch_cost
let mk_inline_indirect_cost = mk_inline_cost " indirect " " an indirect call " Clflags . default_inline_indirect_cost
let mk_inline_lifting_benefit f = " - inline - lifting - benefit " , Arg . String f , Printf . sprintf " < n >|< round >=< n [ , . . . ] > The benefit of lifting definitions \ to toplevel during inlining ( default % d , higher numbers more beneficial ) " Clflags . default_i...
let mk_inline_branch_factor f = " - inline - branch - factor " , Arg . String f , Printf . sprintf " < n >|< round >=< n [ , . . . ] > Estimate the probability of a \ branch being cold as 1 ( / 1 + n ) ( used for inlining ) ( default . % 2f ) " Clflags . defaul...
let mk_intf f = " - intf " , Arg . String f , " < file > Compile < file > as a . mli file " ; ;
let mk_intf_suffix f = " - intf - suffix " , Arg . String f , " < string > Suffix for interface files ( default : . mli ) " ; ;
let mk_intf_suffix_2 f = " - intf_suffix " , Arg . String f , " < string > ( deprecated ) same as - intf - suffix " ; ;
let mk_insn_sched f = " - insn - sched " , Arg . Unit f , Printf . sprintf " Run the instruction scheduling pass % s " ( if Clflags . insn_sched_default then " ( default ) " else " " ) ; ;
let mk_no_insn_sched f = " - no - insn - sched " , Arg . Unit f , Printf . sprintf " Do not run the instruction scheduling pass % s " ( if not Clflags . insn_sched_default then " ( default ) " else " " ) ; ;
let mk_keep_docs f = " - keep - docs " , Arg . Unit f , " Keep documentation strings in . cmi files " ; ;
let mk_no_keep_docs f = " - no - keep - docs " , Arg . Unit f , " Do not keep documentation strings in . cmi files ( default ) " ; ;
let mk_keep_locs f = " - keep - locs " , Arg . Unit f , " Keep locations in . cmi files ( default ) " ; ;
let mk_no_keep_locs f = " - no - keep - locs " , Arg . Unit f , " Do not keep locations in . cmi files " ; ;
let mk_probes f = if Config . probes then " - probes " , Arg . Unit f , " Emit tracing probes as specified by [ %% probe . . ] " else let err ( ) = raise ( Arg . Bad " OCaml has been configured without support for \ tracing probes : - probes not available . " ) in " - p...
let mk_no_probes f = " - no - probes " , Arg . Unit f , " Ignore [ %% probe . . ] " ; ;
let mk_labels f = " - labels " , Arg . Unit f , " Use commuting label mode " ; ;
let mk_linkall f = " - linkall " , Arg . Unit f , " Link all modules , even unused ones " ; ;
let mk_linscan f = " - linscan " , Arg . Unit f , " Use the linear scan register allocator " ; ;
let mk_make_runtime f = " - make - runtime " , Arg . Unit f , " Build a runtime system with given C objects and libraries " ; ;
let mk_make_runtime_2 f = " - make_runtime " , Arg . Unit f , " ( deprecated ) same as - make - runtime " ; ;
let mk_inline_max_depth f = " - inline - max - depth " , Arg . String f , Printf . sprintf " < n >|< round >=< n [ , . . . ] > Maximum depth of search for \ inlining opportunities inside inlined functions ( default % d ) " Clflags . default_inline_max_depth ; ;
let mk_modern f = " - modern " , Arg . Unit f , " ( deprecated ) same as - labels " ; ;
let mk_alias_deps f = " - alias - deps " , Arg . Unit f , " Do record dependencies for module aliases " ; ;
let mk_no_alias_deps f = " - no - alias - deps " , Arg . Unit f , " Do not record dependencies for module aliases " ; ;
let mk_app_funct f = " - app - funct " , Arg . Unit f , " Activate applicative functors " ; ;
let mk_no_app_funct f = " - no - app - funct " , Arg . Unit f , " Deactivate applicative functors " ; ;
let mk_no_check_prims f = " - no - check - prims " , Arg . Unit f , " Do not check runtime for primitives " ; ;
let mk_no_float_const_prop f = " - no - float - const - prop " , Arg . Unit f , " Deactivate constant propagation for floating - point operations " ; ;
let mk_noassert f = " - noassert " , Arg . Unit f , " Do not compile assertion checks " ; ;
let mk_noautolink_byt f = " - noautolink " , Arg . Unit f , " Do not automatically link C libraries specified in . cma files " ; ;
let mk_noautolink_opt f = " - noautolink " , Arg . Unit f , " Do not automatically link C libraries specified in . cmxa files " ; ;
let mk_nodynlink f = " - nodynlink " , Arg . Unit f , " Enable optimizations for code that will not be dynlinked " ; ;
let mk_noinit f = " - noinit " , Arg . Unit f , " Do not load any init file "
let mk_nolabels f = " - nolabels " , Arg . Unit f , " Ignore non - optional labels in types " ; ;
let mk_noprompt f = " - noprompt " , Arg . Unit f , " Suppress all prompts " ; ;
let mk_nopromptcont f = " - nopromptcont " , Arg . Unit f , " Suppress prompts for continuation lines of multi - line inputs " ; ;
let mk_nostdlib f = " - nostdlib " , Arg . Unit f , " Do not add default directory to the list of include directories " ; ;
let mk_no_unbox_free_vars_of_closures f = " - no - unbox - free - vars - of - closures " , Arg . Unit f , " Do not unbox variables that will appear inside function closures " ; ;
let mk_no_unbox_specialised_args f = " - no - unbox - specialised - args " , Arg . Unit f , " Do not unbox arguments to which functions have been specialised " ; ;
let mk_o f = " - o " , Arg . String f , " < file > Set output file name to < file " > ; ;
let mk_open f = " - open " , Arg . String f , " < module > Opens the module < module > before typing "
let mk_output_obj f = " - output - obj " , Arg . Unit f , " Output an object file instead of an executable " ; ;
let mk_output_complete_obj f = " - output - complete - obj " , Arg . Unit f , " Output an object file , including runtime , instead of an executable " ; ;
let mk_output_complete_exe f = " - output - complete - exe " , Arg . Unit f , " Output a self - contained executable , including runtime and C stubs " ; ;
let mk_p f = " - p " , Arg . Unit f , " ( no longer supported ) " ; ;
let mk_pack_byt f = " - pack " , Arg . Unit f , " Package the given . cmo files into one . cmo " ; ;
let mk_pack_opt f = " - pack " , Arg . Unit f , " Package the given . cmx files into one . cmx " ; ;
let mk_pp f = " - pp " , Arg . String f , " < command > Pipe sources through preprocessor < command " > ; ;
let mk_ppx f = " - ppx " , Arg . String f , " < command > Pipe abstract syntax trees through preprocessor < command " > ; ;
let mk_plugin f = " - plugin " , Arg . String f , " < plugin > ( no longer supported ) " ; ;
let mk_principal f = " - principal " , Arg . Unit f , " Check principality of type inference " ; ;
let mk_no_principal f = " - no - principal " , Arg . Unit f , " Do not check principality of type inference ( default ) " ; ;
let mk_rectypes f = " - rectypes " , Arg . Unit f , " Allow arbitrary recursive types " ; ;
let mk_no_rectypes f = " - no - rectypes " , Arg . Unit f , " Do not allow arbitrary recursive types ( default ) " ; ;
let mk_remove_unused_arguments f = " - remove - unused - arguments " , Arg . Unit f , " Remove unused function arguments " ; ;
let mk_runtime_variant f = " - runtime - variant " , Arg . String f , " < str > Use the < str > variant of the run - time system " ; ;
let mk_with_runtime f = " - with - runtime " , Arg . Unit f , " Include the runtime system in the generated program ( default ) " ; ;
let mk_without_runtime f = " - without - runtime " , Arg . Unit f , " Do not include the runtime system in the generated program . " ; ;
let mk_S f = " - S " , Arg . Unit f , " Keep intermediate assembly file " ; ;
let mk_safe_string f = " - safe - string " , Arg . Unit f , if Config . safe_string then " ( was set when configuring the compiler ) " else if Config . default_safe_string then " Make strings immutable ( default ) " else " Make strings immutable " ; ;
let mk_shared f = " - shared " , Arg . Unit f , " Produce a dynlinkable plugin " ; ;
let mk_short_paths f = " - short - paths " , Arg . Unit f , " Shorten paths in types " ; ;
let mk_stdin f = " - stdin " , Arg . Unit f , " Read script from standard input " ; ;
let mk_no_strict_sequence f = " - no - strict - sequence " , Arg . Unit f , " Left - hand part of a sequence need not have type unit ( default ) " ; ;
let mk_strict_sequence f = " - strict - sequence " , Arg . Unit f , " Left - hand part of a sequence must have type unit " ; ;
let mk_thread f = " - thread " , Arg . Unit f , " ( deprecated ) same as - I + threads " ; ;
let mk_dtimings f = " - dtimings " , Arg . Unit f , " Print timings information for each pass " ; ; ;
let mk_dprofile f = " - dprofile " , Arg . Unit f , Profile . options_doc ; ;
let mk_unbox_closures f = " - unbox - closures " , Arg . Unit f , " Pass free variables via specialised arguments rather than closures " ; ;
let mk_unbox_closures_factor f = " - unbox - closures - factor " , Arg . Int f , Printf . sprintf " < n > 0 > Scale the size threshold above which \ unbox - closures will slow down indirect calls rather than duplicating a \ function ( default % d ) " Clflags . default_unbox_closures_fa...
let mk_unboxed_types f = " - unboxed - types " , Arg . Unit f , " unannotated unboxable types will be unboxed " ; ;
let mk_no_unboxed_types f = " - no - unboxed - types " , Arg . Unit f , " unannotated unboxable types will not be unboxed ( default ) " ; ;
let mk_unsafe f = " - unsafe " , Arg . Unit f , " Do not compile bounds checking on array and string access " ; ;
let mk_unsafe_string f = if Config . safe_string then let err ( ) = raise ( Arg . Bad " OCaml has been configured with - force - safe - string : \ - unsafe - string is not available " ) in " - unsafe - string " , Arg . Unit err , " ( option not available ) " else if Config ....
let mk_use_runtime f = " - use - runtime " , Arg . String f , " < file > Generate bytecode for the given runtime system " ; ;
let mk_use_runtime_2 f = " - use_runtime " , Arg . String f , " < file > ( deprecated ) same as - use - runtime " ; ;
let mk_v f = " - v " , Arg . Unit f , " Print compiler version and location of standard library and exit " ; ;
let mk_verbose f = " - verbose " , Arg . Unit f , " Print calls to external commands " ; ;
let mk_version f = " - version " , Arg . Unit f , " Print version and exit " ; ;
let mk__version f = " -- version " , Arg . Unit f , " Print version and exit " ; ;
let mk_no_version f = " - no - version " , Arg . Unit f , " Do not print version at startup " ; ;
let mk_vmthread f = " - vmthread " , Arg . Unit f , " ( no longer supported ) " ; ;
let mk_vnum f = " - vnum " , Arg . Unit f , " Print version number and exit " ; ;
let mk_w f = " - w " , Arg . String f , Printf . sprintf " < list > Enable or disable warnings according to < list >:\ n \ \ +< spec > enable warnings in < spec >\ n \ \ -< spec > disable warnings in < spec >\ n \ \ @< spec > enable warnings in < spec > and treat them as errors \ ...
let mk_warn_error f = " - warn - error " , Arg . String f , Printf . sprintf " < list > Enable or disable error status for warnings according \ n \ \ to < list . > See option - w for the syntax of < list . >\ n \ \ Default setting is % S " Warnings . defaults_warn_error ; ;
let mk_warn_help f = " - warn - help " , Arg . Unit f , " Show description of warning numbers " ; ;
let mk_color f = " - color " , Arg . Symbol ( [ " auto " ; " always " ; " never " ] , f ) , Printf . sprintf " Enable or disable colors in compiler messages \ n \ \ The following settings are supported :\ n \ \ auto use heuristics to enable colors only if supported \ n ...
let mk_error_style f = " - error - style " , Arg . Symbol ( [ " contextual " ; " short " ] , f ) , Printf . sprintf " Control the way error messages and warnings are printed \ n \ \ The following settings are supported :\ n \ \ short only print the error and its location \ n ...
let mk_where f = " - where " , Arg . Unit f , " Print location of standard library and exit " ; ;
let mk_nopervasives f = " - nopervasives " , Arg . Unit f , " ( undocumented ) " ; ;
let mk_match_context_rows f = " - match - context - rows " , Arg . Int f , let [ @ manual . ref " s : comp - options " ] chapter , section = 9 , 2 in Printf . sprintf " < n > ( advanced , see manual section % d . % d . ) " chapter section ; ;
let mk_use_prims f = " - use - prims " , Arg . String f , " < file > ( undocumented ) " ; ;
let mk_dump_into_file f = " - dump - into - file " , Arg . Unit f , " dump output like - dlambda into < target . > dump " ; ;
let mk_extension f = let available_extensions = Clflags . Extension . ( List . map to_string all ) in " - extension " , Arg . Symbol ( available_extensions , f ) , " < extension > Enable the extension ( may be specified more than once ) " ; ;
let mk_disable_all_extensions f = " - disable - all - extensions " , Arg . Unit f , " Disable all extensions , wherever they are specified ; this flag \ n \ \ overrides the - extension flag ( whether specified before or after this \ n \ \ flag ) , disables any extensions that are enable...
let mk_dparsetree f = " - dparsetree " , Arg . Unit f , " ( undocumented ) " ; ;