Created
May 23, 2012 15:35
-
-
Save crater2150/2775937 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
AGGRESSIVE="-fgcse-after-reload -finline-functions -fpredictive-commoning -fstack-protector -ftree-vectorize" | |
AGGRESSIVE2="-fselective-scheduling -fselective-scheduling2 -fsel-sched-pipelining -fsel-sched-pipelining-outer-loops" | |
GRAPHITE="-fgraphite-identity -floop-block -floop-interchange -floop-strip-mine -ftree-loop-distribution" | |
LTO="-flto" | |
# cpu specific flags | |
CPU="-march=corei7 -mcx16 -msahf -mno-movbe -maes -mpclmul -mpopcnt -mno-abm" | |
CPU="${CPU} -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm -mno-avx" | |
CPU="${CPU} -msse4.2 -msse4.1 --param l1-cache-size=32" | |
CPU="${CPU} --param l1-cache-line-size=64 --param l2-cache-size=4096" | |
CPU="${CPU} -mtune=corei7" | |
# general optimization flags | |
SAFEFLAGS="${CPU} -O2 -pipe" | |
CFLAGS="${SAFEFLAGS} ${LTO} ${AGGRESSIVE} ${AGGRESSIVE2} ${GRAPHITE} -ggdb" | |
FEATURES="${FEATURES} splitdebug " | |
CXXFLAGS="${CFLAGS}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment