How to make a Release configuration?
Hello Chudik,
Usally,
In Debug Configuration we set:
- The Debug Level to Maximum (-g3)
- The Optimization to Optimize for Debug (-Og)
In Release Configuration we set
- The Debug Level to None
- The Optimization to -Os or -O1 ... (depends on your needs)
For more informations on:
- Optimizations @see https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#Optimize-Options
- Debug Levels (-glevel) @see https://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html#Debugging-Options
Best Regards,
Tarek