sakurapyon’s blog

sakurapyon’s blog

g++ のコンパイルオプション

メモ:
DEFOPT= -D_GCC_ -O3 -Wall -W -Winline -m64 -msse4.2 -march=native -fargument-noalias-global -fno-strict-aliasing --param max-inline-insns-single=1000 -fipa-pure-const -funroll-loops -fbranch-probabilities -fexpensive-optimizations -ffast-math -ftree-loop-linear -freorder-blocks-and-partition -fsched2-use-traces -fgcse-las -fgcse-sm -fbranch-target-load-optimize -floop-optimize -fmerge-all-constants -ftree-vectorize -combine -foptimize-sibling-calls -fprefetch-loop-arrays -fstrength-reduce -frename-registers -ftracer -fvariable-expansion-in-unroller -fmove-loop-invariants -fthread-jumps -fcse-follow-jumps -frerun-cse-after-loop -frerun-loop-opt -fgcse

意味があるかないかわからんのもある。利きそうなら指定して副作用があるやつは抜いてるんだけど。