Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HACKING.adoc: add tip about using linscan #10591

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 11 additions & 0 deletions HACKING.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,17 @@ If `boot/ocamlc` changes (e.g. because you ran `make bootstrap`), then
the build will revert to the slower bytecode-compiled `ocamlc` until
you do the above step again.

=== Speeding up native builds on architectures with a lot of registers

On architectures with a lot of registers you can also speed up the build by using
the linear scan register allocator, e.g.:

----
export OCAMLPARAM=_,linscan=1
----

You can try this if building driver/main_args takes a lot of time.

=== Using merlin

During the development of the compiler, the internal format of compiled object
Expand Down