Select the build tool node on the project tree and select the [Compile Options] tab on the Property panel.
To perform optimization with the code size precedence, select [Code size precedence(-Osize)] in the [Level of optimization] property in the [Optimization] category.

You can also set the option in the same way with the [Level of optimization] property in the [Frequently Used Options(for Compile)] category on the [Common Options] tab. |