- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It looks like I have no influence on the optimization level when i change the:
"CFLAGS=" -Og,-O0 ,... and so on. in the make file. What i have to do exactly?
Change the Make file, save, recompile all ? Or i do missing something?
Do you have a step by step manuel to change optimization level?
for example: the "test" var is always optimized out: --> for my understanding this must not happen with -O0
int main(void)
{
cy_rslt_t result;
uint8_t test = 0;
/* Initialize the device and board peripherals */
result = cybsp_init() ;
if (result != CY_RSLT_SUCCESS)
{
CY_ASSERT(0);
}
/* Enable global interrupts */
__enable_irq();
while(1)
{
test ++;
}
}
Solved! Go to Solution.
- Labels:
-
ModusToolbox General
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you want to use a custom optimization, set "CONFIG=Custom" in the makefile.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you want to use a custom optimization, set "CONFIG=Custom" in the makefile.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hey, thank you, now it work. Perfect.