Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting Optimization flags in Eclipse CDT

How do you set optimization/debugging flags in Eclipse CDT, set up uses GNU tool-chain ??

Thanks !

like image 666
newprint Avatar asked Mar 02 '26 00:03

newprint


1 Answers

You can also go to Project Properties -> C/C++ Build -> Settings -> Tool Settings. Click on the triangle next to your compiler to see the drop down menu -> click on Optimization. On the right hand side next to Optimization Level choose from the drop down menu your desired level. (Be aware though that once you set optimization level up from None (-O0) you will experience issues when debugging... values not available, skipping of breakpoints etc.) Hope this helps!

like image 88
gomfy Avatar answered Mar 04 '26 13:03

gomfy