I tried use
#pragma GCC push_options
#pragma GCC optimize("O0")
/*my code function*/
#pragma GCC pop_options
after compiled the warning:#pragma GCC target is not supported for this machine [-Wpragmas]
Is there any other solutions?
Solved! Go to Solution.
Hi,
Please try the following code for function optimization.
__attribute__((optimize("O0")))void func(void)
{
/* Your code*/
}
Have a great day,
Felipe
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored. Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
------------------------------------------------------------------------------
Chip number is S9KEA64
Hi,
Please try the following code for function optimization.
__attribute__((optimize("O0")))void func(void)
{
/* Your code*/
}
Have a great day,
Felipe
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored. Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
------------------------------------------------------------------------------
HI
What's your chip part number? please let us know thus we can assign right engineer for your issue.
Thanks,
Jun Zhang