Skip to content

feat(jsoo): link bytecode executables with -bytecode-hints - #16560

Merged
Alizter merged 2 commits into
ocaml:mainfrom
vouillon:jsoo-bytecode-hints
Oct 7, 2026
Merged

Alizter merged 2 commits into
ocaml:mainfrom
vouillon:jsoo-bytecode-hints

Conversation

@vouillon

@vouillon vouillon commented Oct 7, 2026

Copy link
Copy Markdown
Member

Starting with OCaml 5.6, pass -bytecode-hints when linking the bytecode executable compiled by js_of_ocaml and wasm_of_ocaml in whole program mode, so that the optimization hints are available to them.

@vouillon
vouillon force-pushed the jsoo-bytecode-hints branch from d05d192 to ad21c1f Compare October 7, 2026 17:13
OCaml 5.6 only keeps the optimization hints of compilation units in a
bytecode executable when linked with -bytecode-hints.

Signed-off-by: Jérôme Vouillon <[email protected]>
Starting with OCaml 5.6, pass -bytecode-hints when linking the bytecode
executable compiled by js_of_ocaml and wasm_of_ocaml in whole program
mode, so that the optimization hints are available to them.

Signed-off-by: Jérôme Vouillon <[email protected]>
@vouillon
vouillon force-pushed the jsoo-bytecode-hints branch from ad21c1f to 8c21fbf Compare October 7, 2026 17:50
@Alizter
Alizter merged commit 54d8aab into ocaml:main Oct 7, 2026
37 of 38 checks passed
@Alizter Alizter added this to the 3.26.0 milestone Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants