Visible to Intel only — GUID: mwh1416946697680
Ixiasoft
Visible to Intel only — GUID: mwh1416946697680
Ixiasoft
5.4.3.6. Configuring Optimization and Debugger Options
You can control the optimization and debug level through the project makefile, which determines the compiler options.
Example 4–5. Default Application Makefile Settings
APP_CFLAGS_OPTIMIZATION := -O0 APP_CFLAGS_DEBUG_LEVEL := -g
When your project is fully debugged and ready for release, you might want to enable optimization and omit the symbol table, to achieve faster, smaller executable code. To enable optimization and turn off the symbol table, edit the application makefile to contain the symbol definitions shown in the following example. The absence of a value on the right hand side of the APP_CFLAGS_DEBUG_LEVEL definition causes the compiler to omit generating a symbol table.
Example 4–6. Application Makefile Settings with Optimization
APP_CFLAGS_OPTIMIZATION := -O3 APP_CFLAGS_DEBUG_LEVEL :=
For more information about makefile editing and make clean, refer to the “Applications and Libraries” chapter.