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 [Optimizes with emphasis on code size (-size)] on the [Optimization type] property in the [Optimization] category.

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