g++优化开关(暴力必备)
作者:互联网
1 %:pragma GCC optimize(3) 2 %:pragma GCC optimize("Ofast") 3 %:pragma GCC optimize("inline") 4 %:pragma GCC optimize("-fgcse") 5 %:pragma GCC optimize("-fgcse-lm") 6 %:pragma GCC optimize("-fipa-sra") 7 %:pragma GCC optimize("-ftree-pre") 8 %:pragma GCC optimize("-ftree-vrp") 9 %:pragma GCC optimize("-fpeephole2") 10 %:pragma GCC optimize("-ffast-math") 11 %:pragma GCC optimize("-fsched-spec") 12 %:pragma GCC optimize("unroll-loops") 13 %:pragma GCC optimize("-falign-jumps") 14 %:pragma GCC optimize("-falign-loops") 15 %:pragma GCC optimize("-falign-labels") 16 %:pragma GCC optimize("-fdevirtualize") 17 %:pragma GCC optimize("-fcaller-saves") 18 %:pragma GCC optimize("-fcrossjumping") 19 %:pragma GCC optimize("-fthread-jumps") 20 %:pragma GCC optimize("-funroll-loops") 21 %:pragma GCC optimize("-fwhole-program") 22 %:pragma GCC optimize("-freorder-blocks") 23 %:pragma GCC optimize("-fschedule-insns") 24 %:pragma GCC optimize("inline-functions") 25 %:pragma GCC optimize("-ftree-tail-merge") 26 %:pragma GCC optimize("-fschedule-insns2") 27 %:pragma GCC optimize("-fstrict-aliasing") 28 %:pragma GCC optimize("-fstrict-overflow") 29 %:pragma GCC optimize("-falign-functions") 30 %:pragma GCC optimize("-fcse-skip-blocks") 31 %:pragma GCC optimize("-fcse-follow-jumps") 32 %:pragma GCC optimize("-fsched-interblock") 33 %:pragma GCC optimize("-fpartial-inlining") 34 %:pragma GCC optimize("no-stack-protector") 35 %:pragma GCC optimize("-freorder-functions") 36 %:pragma GCC optimize("-findirect-inlining") 37 %:pragma GCC optimize("-fhoist-adjacent-loads") 38 %:pragma GCC optimize("-frerun-cse-after-loop") 39 %:pragma GCC optimize("inline-small-functions") 40 %:pragma GCC optimize("-finline-small-functions") 41 %:pragma GCC optimize("-ftree-switch-conversion") 42 %:pragma GCC optimize("-foptimize-sibling-calls") 43 %:pragma GCC optimize("-fexpensive-optimizations") 44 %:pragma GCC optimize("-funsafe-loop-optimizations") 45 %:pragma GCC optimize("inline-functions-called-once") 46 %:pragma GCC optimize("-fdelete-null-pointer-checks")
真好。
标签:GCC,falign,++,必备,functions,ftree,开关,pragma,optimize 来源: https://www.cnblogs.com/huwenqiang-hwq/p/11281966.html