Anjuta IDE Manual
<<< Previous | Setting Compiler Options | Next >>>

# Code Optimization

To set the level of Optimization for code compilation:

1. Choose the menu item Settings->Compiler and Linker Settings … and click on the `Optimization` tab in the Compiler Options dialog.

2. Select the level of optimization required.

Figure 7. Optimization dialog

Note that it is not a good idea to enable any sort of optimization if you have also enabled debugging. It will not do any harm to do so, but it will make life much more difficult when debugging the program. With optimization enabled, the compiler will modify your code to improve performance. This sometimes creates confusion during debugging, as the line number that the debugger refers to will not always correspond to the actual line number in the source file.

Code optimization takes place during the compilation stage only, and does not affect the source code in the file.

<<< Previous | Home | Next >>>
Compiler Warnings | Up | Other compiler settings