优化GCC在Debian中的性能可从以下方面入手:
-O2/-O3
-march=native
-flto
-funroll-loops
inline
cpufreq-set -g performance
make -j$(nproc)
gprof
perf
-fopt-info
注:优化后需充分测试确保程序正确性。