Home > Back-end >  Very upset! Cannot let GCC optimization program - O0 - g also not line, how to make the GCC optimiza
Very upset! Cannot let GCC optimization program - O0 - g also not line, how to make the GCC optimiza

Time:03-23

GDB to debug the discovery process of some variables were optimized: optimized out, modify the optimization of grade - O0 also not line, add - g,

Check some information found - O0 really cannot make Gcc is not optimized, Gcc will put some content optimizing,

Really upset, is apart from in front of the function plus __attribute__ ((optimize (" O0 "))) and in front of the variable volatile this way of change the code, there is no other way to make the procedures for the GCC don't optimize

CodePudding user response:

Even using O0, will also have a 50-60 will be optimized, such as the inline

CodePudding user response:

reference 1/f, Simple, Soft reply:
even if use O0, will also have a 50-60 will be optimized, such as the inline

Is ah, how to do ah, don't let him is there any way to optimize
  • Related