Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Mar 7, 2024

The current arm64 backend puts floating-point literal constants in the text section. It makes more sense to gather them in rodata, in order to be a bit more cache-friendly (since these systems have separate L1 data and instruction cache).

This change is only done on ELF systems since I don't know the appropriate syntax for MacOS.

Copy link
Contributor

@nojb nojb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ghost
Copy link
Author

ghost commented Mar 14, 2024

Rebased and added a Changes entry.

@gasche gasche merged commit e663755 into ocaml:trunk May 15, 2024
@ghost ghost deleted the arm64_rodata branch May 15, 2024 09:45
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.

3 participants