Skip to content

Commit

Permalink
Add flambda compiler tags
Browse files Browse the repository at this point in the history
Used defaults as per ocaml/ocamlbuild#68 . Please check if this makes sense, I did not test or verufy.
  • Loading branch information
nilsbecker committed Apr 27, 2016
1 parent f24ff6b commit e09a701
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion manual.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,29 @@ Feel free to look at the implementation and link:CONTRIBUTING.adoc[send a patch]
* `warn(A@10-28@40-42-45)`
* `warn_error(+10+40)`


===== Compiler tags for native compilation using flambda (4.03+)

* `optimize(2)` (`2` gives the defaults of the tags below, `3` optimizes more, `classic` switches off flambda)
* `optimization_rounds(2)`
* `inline_toplevel(160)`
* `inline_branch_factor(0.1)`
* `inline_alloc_cost(7)`
* `inline_branch_cost(5)`
* `inline_call_cost(5)`
* `inline_indirect_cost(4)`
* `inline_prim_cost(3)`
* `inline_lifting_benefit(1300)`
* `inline_max_depth(1)`
* `inline_max_unroll(0)`
* `unbox_closures_factor(1)`
* `inlining_report`
* `remove_unused_arguments`
* `unbox_closures`
* `no_unbox_free_vars_of_closures`
* `no_unbox_specialized_args`


===== `ocamlfind` tags

* `package(pkgname)`
Expand Down Expand Up @@ -1333,4 +1356,4 @@ include::samples/complete-example-menhir-support-in-ocamlbuild/myocamlbuild.ml[]
[source,ocaml]
----
include::samples/complete-example-menhir-support-in-ocamlbuild/Ocaml_tools.ml[]
----
----

0 comments on commit e09a701

Please sign in to comment.