Last active
November 1, 2019 01:28
-
-
Save AugustNagro/f8ee673b7c73e432714c95d786682317 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Clang options | |
my cpu: https://ark.intel.com/content/www/us/en/ark/products/84985/intel-core-i5-5257u-processor-3m-cache-up-to-3-10-ghz.html | |
(also try O2) | |
-O3 enable best optimizations | |
-march=native compile for arch, not isa | |
-mtune=broadwell not sure if same in clang as gcc (https://lemire.me/blog/2018/07/25/it-is-more-complicated-than-i-thought-mtune-march-in-gcc/) | |
-pipe use pipes between commands, when possible | |
-funroll-loops unroll loops | |
-fomit-frame-pointer save a register & instruction, in applicable (small) functions | |
-flto ensure full-mode link-time optimization enabled | |
bash configure --with-jvm-variants=custom --with-jvm-features=jni-check,serialgc,compiler1,compiler2,g1gc,cds,parallelgc --with-extra-cflags='-O3 -march=native -mtune=broadwell -pipe -funroll-loops -fomit-frame-pointer -flto' --with-extra-cxxflags='-O3 -march=native -mtune=broadwell -pipe -funroll-loops -fomit-frame-pointer -flto' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment