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

Get more information from the OCaml compiler #91

Open
vouillon opened this issue Oct 4, 2024 · 0 comments
Open

Get more information from the OCaml compiler #91

vouillon opened this issue Oct 4, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@vouillon
Copy link
Collaborator

vouillon commented Oct 4, 2024

Some information is lost when compiling the lambda intermediate code to bytecode. The PR ocaml/ocaml/pull/13438 allows to keep some of this information, which could be use to generate better code:

  • shape of bigarrays (optimized bigarray operation);
  • integer types (direct comparison for int32 / int64 / nativeint)
  • whether a string access is unsafe (skip bound check);
  • representation of the arguments and result of primitives (call external primitives with unboxed parameters);
  • block mutability (improve the data flow analyses).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant