I recently used GCC to compile a program, but when I used the -O1 optimization -O1 , it went wrong; there were no problems using -O0 . Therefore, I replaced -O1 with these parameters, as indicated in the official documentation, for example -fauto-inc-dec , -fcompare-elim , -fcprop-registers , etc. However, it works fine without errors, but the performance is not very good.
I want to know if -O1 those small compilation options?
source share