Skip to content

Conversation

graalvmbot
Copy link
Collaborator

This PR adds a new -march option to Native Image:

    -march                generate instructions for a specific machine type. Defaults to
                          'x86-64-v3' on AMD64 and 'armv8-a' on AArch64. Use
                          -march=compatibility for best compatibility, or -march=native for
                          best performance if the native executable is deployed on the same
                          machine or on a machine with the same CPU features. To list all
                          available machine types, use -march=list.

x86-64-v3 is the new default on AMD64 and allows the Graal compiler to generate AVX and other widespread CPU instructions, which can significantly improve the run-time performance of native executables. If you or the users of your application want to deploy on machines with older CPUs, use -march=compatibility to re-enable the previous default. Use -march=native for best performance if the native executable is deployed on the same machine or on a machine with the same CPU features. To list all available machine types, use -march=list.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Mar 3, 2023
@graalvmbot graalvmbot force-pushed the fniephaus/GR-44110/march branch from 5cc0757 to 2f728fc Compare March 3, 2023 09:52
@graalvmbot graalvmbot merged commit 9377add into master Mar 3, 2023
@graalvmbot graalvmbot deleted the fniephaus/GR-44110/march branch March 3, 2023 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
Status: Released
Development

Successfully merging this pull request may close these issues.

2 participants